/* public/assets/css/auth.css */

/* ============================================
   MODERN AUTH STYLES - All Auth Pages
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Auth Body - Main Container */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* ============================================
   Language Switcher
   ============================================ */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher .btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.language-switcher .btn:hover,
.language-switcher .btn:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.language-switcher .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 8px 0;
    margin-top: 10px;
    min-width: 150px;
}

.language-switcher .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.language-switcher .dropdown-item:hover {
    background-color: #667eea;
    color: white;
}

/* ============================================
   Auth Container & Card
   ============================================ */
.auth-container {
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Simple Card (Forgot & Reset Password) */
.auth-card-simple {
    display: block;
    max-width: 500px;
    margin: 0 auto;
}

/* Register Card - Slightly Wider */
.auth-card-register {
    max-width: 1200px;
}

/* ============================================
   Auth Brand Section (Left Side)
   ============================================ */
.auth-brand {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.brand-logo {
    margin-bottom: 30px;
}

.brand-logo img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.auth-brand h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.auth-brand p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Brand Features */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 350px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 15px;
    font-weight: 500;
}

/* ============================================
   Auth Form Section (Right Side)
   ============================================ */
.auth-form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.auth-form-centered {
    padding: 60px;
}

.form-content {
    width: 100%;
    max-width: 450px;
}

/* Auth Icon (for simple pages) */
.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-size: 36px;
}

/* Form Header */
.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 15px;
    margin: 0;
}

/* ============================================
   Form Groups & Inputs
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #95a5a6;
    font-size: 16px;
    z-index: 10;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

.form-control::placeholder {
    color: #bdc3c7;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #667eea;
}

/* Form Text */
.form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #7f8c8d;
}

/* Invalid Feedback */
.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #e74c3c;
}

/* ============================================
   Form Options (Remember & Forgot)
   ============================================ */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: #5a6c7d;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
}

/* ============================================
   Buttons
   ============================================ */
.btn-block {
    width: 100%;
    height: 52px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
}

.btn-loader.d-none {
    display: none !important;
}

/* ============================================
   Form Footer
   ============================================ */
.form-footer {
    margin-top: 24px;
    text-align: center;
}

.form-footer p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #764ba2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
    transform: translateX(-3px);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert ul li {
    margin-bottom: 4px;
}

.alert ul li:last-child {
    margin-bottom: 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-dismissible .btn-close {
    padding: 0;
    background: transparent;
    border: none;
    opacity: 0.5;
    cursor: pointer;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-brand {
        padding: 40px 30px;
    }

    .auth-form-section {
        padding: 40px 30px;
    }

    .auth-form-centered {
        padding: 40px 30px;
    }

    .form-content {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .auth-body {
        padding: 15px;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-card {
        border-radius: 15px;
    }

    .language-switcher {
        top: 15px;
        right: 15px;
    }

    .language-switcher .btn {
        padding: 6px 15px;
        font-size: 13px;
    }

    .auth-brand {
        padding: 30px 20px;
    }

    .auth-brand h2 {
        font-size: 24px;
    }

    .auth-brand p {
        font-size: 14px;
    }

    .brand-features {
        max-width: 100%;
    }

    .feature-item {
        padding: 14px 16px;
    }

    .feature-item span {
        font-size: 14px;
    }

    .auth-form-section {
        padding: 30px 20px;
    }

    .auth-form-centered {
        padding: 30px 20px;
    }

    .form-header h3 {
        font-size: 24px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        height: 48px;
        font-size: 14px;
    }

    .btn-block {
        height: 48px;
        font-size: 15px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Very Small Mobile */
@media (max-width: 380px) {
    .auth-brand h2 {
        font-size: 20px;
    }

    .feature-item {
        padding: 12px 14px;
    }

    .feature-item i {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }

    .form-header h3 {
        font-size: 22px;
    }

    .auth-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}

/* ============================================
   Loading Animation
   ============================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   Utility Classes
   ============================================ */
.d-none {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-4 {
    margin-bottom: 24px !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}
