/* ============================================================
   auth.css — Fase 4 extension (A.auth)
   CSS inline (sin tags Django dinamicos) extraido de las plantillas
   standalone de auth (login, register, password_change, password_reset_*).

   El bloque :root { {% if not request.reseller_config %} ... } se queda
   inline en cada plantilla porque depende de logica Django de render.
   ============================================================ */


/* === login.html === */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--body-font);
            background: var(--bg-gradient);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-x: hidden;
        }

        /* Animated background */
        .bg-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .bg-shapes .shape {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 20s ease-in-out infinite;
        }

        .shape:nth-child(1) { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
        .shape:nth-child(2) { width: 300px; height: 300px; top: 50%; right: -150px; animation-delay: -5s; }
        .shape:nth-child(3) { width: 200px; height: 200px; bottom: -50px; left: 30%; animation-delay: -10s; }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-30px) rotate(10deg); }
        }

        /* Login Card */
        .login-container {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 420px;
        }

        .login-card {
            background: var(--glass-bg);
            border-radius: 24px;
            padding: 48px 40px;
            box-shadow: var(--shadow);
            backdrop-filter: blur(20px);
        }

        /* Logo */
        .logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 32px;
        }

        .logo-icon {
            width: 64px;
            height: 64px;
            background: var(--bg-gradient);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
        }

        .logo-icon i {
            font-size: 1.8rem;
            color: white;
        }

        .logo-icon img {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .login-title {
            text-align: center;
            font-size: 1.1rem;
            color: var(--text-muted);
            margin-bottom: 32px;
        }

        /* Messages */
        .alert {
            padding: 12px 16px;
            border-radius: 12px;
            margin-bottom: 20px;
            font-size: 0.9rem;
        }

        .alert-danger, .alert-error {
            background: #fee2e2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .alert-success {
            background: #d1fae5;
            color: #059669;
            border: 1px solid #a7f3d0;
        }

        .alert-warning {
            background: #fef3c7;
            color: #d97706;
            border: 1px solid #fcd34d;
        }

        .alert-info {
            background: #dbeafe;
            color: #2563eb;
            border: 1px solid #93c5fd;
        }

        /* Form elements */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .form-control {
            width: 100%;
            padding: 14px 16px;
            font-size: 1rem;
            border: 2px solid var(--input-border);
            border-radius: 12px;
            background: var(--input-bg);
            color: var(--text-dark);
            transition: all 0.2s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--input-focus);
            background: white;
            box-shadow: 0 0 0 4px var(--primary-shadow-light);
        }

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

        .input-icon-wrapper {
            position: relative;
        }

        .input-icon-wrapper i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }

        .input-icon-wrapper .form-control {
            padding-left: 44px;
        }

        /* Checkbox */
        .form-check {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 24px;
        }

        .form-check-input {
            width: 18px;
            height: 18px;
            border: 2px solid var(--input-border);
            border-radius: 5px;
            cursor: pointer;
            accent-color: var(--primary-color);
        }

        .form-check-label {
            font-size: 0.9rem;
            color: var(--text-muted);
            cursor: pointer;
        }

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

        .btn-primary {
            background: var(--bg-gradient);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px var(--primary-shadow);
        }

        .btn-secondary {
            background: var(--input-bg);
            color: var(--text-dark);
            border: 2px solid var(--input-border);
        }

        .btn-secondary:hover {
            background: #e9ecef;
        }

        /* Footer */
        .login-footer {
            text-align: center;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--input-border);
        }

        .login-footer p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .login-footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .login-footer a:hover {
            text-decoration: underline;
        }

        /* Back link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: white;
            text-decoration: none;
            font-size: 0.95rem;
            margin-bottom: 24px;
            opacity: 0.9;
            transition: opacity 0.2s;
        }

        .back-link:hover {
            opacity: 1;
        }

        /* MFA Form */
        .mfa-header {
            text-align: center;
            margin-bottom: 24px;
        }

        .mfa-header i {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 16px;
        }

        .mfa-header h3 {
            font-size: 1.3rem;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .mfa-header p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .mfa-input {
            text-align: center;
            font-size: 1.5rem;
            letter-spacing: 0.5rem;
            font-weight: 600;
        }

        .mfa-link {
            text-align: center;
            margin-top: 16px;
        }

        .mfa-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .mfa-link a:hover {
            text-decoration: underline;
        }

        .btn-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Hidden forms */
        .hidden {
            display: none !important;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .login-card {
                padding: 32px 24px;
            }
        }


/* === register.html === */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--body-font);
            background: var(--bg-gradient);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-x: hidden;
        }

        /* Animated background */
        .bg-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .bg-shapes .shape {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 20s ease-in-out infinite;
        }

        .shape:nth-child(1) { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
        .shape:nth-child(2) { width: 300px; height: 300px; top: 50%; right: -150px; animation-delay: -5s; }
        .shape:nth-child(3) { width: 200px; height: 200px; bottom: -50px; left: 30%; animation-delay: -10s; }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-30px) rotate(10deg); }
        }

        /* Register Card */
        .register-container {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 520px;
        }

        .register-card {
            background: var(--glass-bg);
            border-radius: 24px;
            padding: 40px;
            box-shadow: var(--shadow);
            backdrop-filter: blur(20px);
        }

        /* Logo */
        .logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 24px;
        }

        .logo-icon {
            width: 56px;
            height: 56px;
            background: var(--bg-gradient);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
        }

        .logo-icon i {
            font-size: 1.5rem;
            color: white;
        }

        .logo-icon img {
            width: 36px;
            height: 36px;
            object-fit: contain;
        }

        .logo-text {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .register-title {
            text-align: center;
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        /* Messages */
        .alert {
            padding: 12px 16px;
            border-radius: 12px;
            margin-bottom: 16px;
            font-size: 0.9rem;
        }

        .alert-danger, .alert-error {
            background: #fee2e2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .alert-success {
            background: #d1fae5;
            color: #059669;
            border: 1px solid #a7f3d0;
        }

        .alert-info {
            background: #dbeafe;
            color: #2563eb;
            border: 1px solid #93c5fd;
        }

        /* Form elements */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

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

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .form-label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 6px;
        }

        .form-control {
            width: 100%;
            padding: 12px 14px;
            font-size: 0.95rem;
            border: 2px solid var(--input-border);
            border-radius: 10px;
            background: var(--input-bg);
            color: var(--text-dark);
            transition: all 0.2s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--input-focus);
            background: white;
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
        }

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

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

        .invalid-feedback {
            color: #dc2626;
            font-size: 0.8rem;
            margin-top: 4px;
        }

        .form-text {
            color: var(--text-muted);
            font-size: 0.75rem;
            margin-top: 4px;
        }

        .input-icon-wrapper {
            position: relative;
        }

        .input-icon-wrapper i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .input-icon-wrapper .form-control {
            padding-left: 40px;
        }

        textarea.form-control {
            resize: vertical;
            min-height: 70px;
        }

        /* Checkbox */
        .form-check {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 20px;
        }

        .form-check-input {
            width: 18px;
            height: 18px;
            margin-top: 2px;
            border: 2px solid var(--input-border);
            border-radius: 5px;
            cursor: pointer;
            accent-color: var(--primary-color);
            flex-shrink: 0;
        }

        .form-check-label {
            font-size: 0.85rem;
            color: var(--text-muted);
            cursor: pointer;
        }

        .form-check-label a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .form-check-label a:hover {
            text-decoration: underline;
        }

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

        .btn-primary {
            background: var(--bg-gradient);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
        }

        /* Footer */
        .register-footer {
            text-align: center;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--input-border);
        }

        .register-footer p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .register-footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .register-footer a:hover {
            text-decoration: underline;
        }

        /* Back link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: white;
            text-decoration: none;
            font-size: 0.95rem;
            margin-bottom: 20px;
            opacity: 0.9;
            transition: opacity 0.2s;
        }

        .back-link:hover {
            opacity: 1;
        }

        /* Company info */
        .company-info {
            background: #dbeafe;
            border: 1px solid #93c5fd;
            border-radius: 12px;
            padding: 14px;
            margin-bottom: 16px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .company-info i {
            color: #2563eb;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .company-info p {
            color: #1e40af;
            font-size: 0.85rem;
            margin: 0;
        }

        /* Responsive */
        @media (max-width: 540px) {
            .register-card {
                padding: 28px 20px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }
        }


/* === password_change.html === */
/* Page Header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.page-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-header-icon svg { color: white; }

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modern Card */
.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.5);
}

.card-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header-icon svg { color: white; }

.card-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.card-body-modern {
    padding: 24px;
}

/* Modern Input */
.modern-input {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
}

.modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Alert */
.alert-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.alert-modern.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Password Requirements */
.pwd-requirements {
    background: var(--background-color, #f8fafc);
    border-radius: 12px;
    padding: 16px 20px;
}

.pwd-req-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pwd-req-title svg { color: var(--primary-color); }

.pwd-req-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwd-req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.pwd-req-item .req-icon { color: var(--text-muted); opacity: 0.4; transition: all 0.2s; }
.pwd-req-item.valid { color: #059669; }
.pwd-req-item.valid .req-icon { color: #059669; opacity: 1; }

/* Dark mode */
[data-theme="dark"] .modern-card { background: var(--card-bg, #1e293b); }
[data-theme="dark"] .card-header-modern { background: rgba(15, 23, 42, 0.5); }
[data-theme="dark"] .pwd-requirements { background: var(--card-bg, #1e293b); }

@media (max-width: 768px) {
    .page-header { flex-direction: column; }
}


/* === password_reset_confirm.html === */
* { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: var(--body-font);
            background: var(--bg-gradient);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-x: hidden;
        }

        .bg-shapes {
            position: fixed; top: 0; left: 0;
            width: 100%; height: 100%;
            pointer-events: none; z-index: 0; overflow: hidden;
        }
        .bg-shapes .shape {
            position: absolute; border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 20s ease-in-out infinite;
        }
        .shape:nth-child(1) { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
        .shape:nth-child(2) { width: 300px; height: 300px; top: 50%; right: -150px; animation-delay: -5s; }
        .shape:nth-child(3) { width: 200px; height: 200px; bottom: -50px; left: 30%; animation-delay: -10s; }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-30px) rotate(10deg); }
        }

        .reset-container {
            position: relative; z-index: 1;
            width: 100%; max-width: 420px;
        }

        .reset-card {
            background: var(--glass-bg);
            border-radius: 24px;
            padding: 48px 40px;
            box-shadow: var(--shadow);
            backdrop-filter: blur(20px);
        }

        .logo {
            display: flex; flex-direction: column;
            align-items: center; margin-bottom: 32px;
        }
        .logo-icon {
            width: 64px; height: 64px;
            background: var(--bg-gradient);
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 16px;
        }
        .logo-icon i { font-size: 1.8rem; color: white; }
        .logo-icon img { width: 40px; height: 40px; object-fit: contain; }
        .logo-text { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }

        .reset-title {
            text-align: center; font-size: 1.1rem;
            color: var(--text-muted); margin-bottom: 32px;
        }

        .alert {
            padding: 12px 16px; border-radius: 12px;
            margin-bottom: 20px; font-size: 0.9rem;
        }
        .alert-danger, .alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
        .alert-success { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
        .alert-info { background: #dbeafe; color: #2563eb; border: 1px solid #93c5fd; }

        .form-group { margin-bottom: 20px; }
        .form-label {
            display: block; font-size: 0.9rem;
            font-weight: 600; color: var(--text-dark); margin-bottom: 8px;
        }
        .form-control {
            width: 100%; padding: 14px 16px; font-size: 1rem;
            border: 2px solid var(--input-border); border-radius: 12px;
            background: var(--input-bg); color: var(--text-dark);
            transition: all 0.2s ease;
        }
        .form-control:focus {
            outline: none; border-color: var(--input-focus);
            background: white; box-shadow: 0 0 0 4px var(--primary-shadow-light);
        }
        .form-control::placeholder { color: #adb5bd; }

        .input-icon-wrapper { position: relative; }
        .input-icon-wrapper i {
            position: absolute; left: 16px; top: 50%;
            transform: translateY(-50%); color: var(--text-muted);
        }
        .input-icon-wrapper .form-control { padding-left: 44px; }

        .btn {
            width: 100%; padding: 14px 24px; font-size: 1rem;
            font-weight: 600; border: none; border-radius: 12px;
            cursor: pointer; transition: all 0.3s ease;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-primary { background: var(--bg-gradient); color: white; }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px var(--primary-shadow);
        }

        .reset-footer {
            text-align: center; margin-top: 24px; padding-top: 24px;
            border-top: 1px solid var(--input-border);
        }
        .reset-footer p { color: var(--text-muted); font-size: 0.9rem; }
        .reset-footer a {
            color: var(--primary-color); text-decoration: none; font-weight: 600;
        }
        .reset-footer a:hover { text-decoration: underline; }

        .back-link {
            display: inline-flex; align-items: center; gap: 8px;
            color: white; text-decoration: none; font-size: 0.95rem;
            margin-bottom: 24px; opacity: 0.9; transition: opacity 0.2s;
        }
        .back-link:hover { opacity: 1; }

        .error-icon, .success-icon {
            text-align: center; margin-bottom: 24px;
        }
        .error-icon i { font-size: 3rem; color: #dc2626; }

        .password-hint {
            font-size: 0.8rem; color: var(--text-muted);
            margin-top: 6px;
        }

        @media (max-width: 480px) {
            .reset-card { padding: 32px 24px; }
        }


/* === password_reset_request.html === */
* { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: var(--body-font);
            background: var(--bg-gradient);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-x: hidden;
        }

        .bg-shapes {
            position: fixed; top: 0; left: 0;
            width: 100%; height: 100%;
            pointer-events: none; z-index: 0; overflow: hidden;
        }
        .bg-shapes .shape {
            position: absolute; border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 20s ease-in-out infinite;
        }
        .shape:nth-child(1) { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
        .shape:nth-child(2) { width: 300px; height: 300px; top: 50%; right: -150px; animation-delay: -5s; }
        .shape:nth-child(3) { width: 200px; height: 200px; bottom: -50px; left: 30%; animation-delay: -10s; }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-30px) rotate(10deg); }
        }

        .reset-container {
            position: relative; z-index: 1;
            width: 100%; max-width: 420px;
        }

        .reset-card {
            background: var(--glass-bg);
            border-radius: 24px;
            padding: 48px 40px;
            box-shadow: var(--shadow);
            backdrop-filter: blur(20px);
        }

        .logo {
            display: flex; flex-direction: column;
            align-items: center; margin-bottom: 32px;
        }
        .logo-icon {
            width: 64px; height: 64px;
            background: var(--bg-gradient);
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 16px;
        }
        .logo-icon i { font-size: 1.8rem; color: white; }
        .logo-icon img { width: 40px; height: 40px; object-fit: contain; }
        .logo-text { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }

        .reset-title {
            text-align: center; font-size: 1.1rem;
            color: var(--text-muted); margin-bottom: 32px;
        }

        .alert {
            padding: 12px 16px; border-radius: 12px;
            margin-bottom: 20px; font-size: 0.9rem;
        }
        .alert-danger, .alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
        .alert-success { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
        .alert-info { background: #dbeafe; color: #2563eb; border: 1px solid #93c5fd; }

        .form-group { margin-bottom: 20px; }
        .form-label {
            display: block; font-size: 0.9rem;
            font-weight: 600; color: var(--text-dark); margin-bottom: 8px;
        }
        .form-control {
            width: 100%; padding: 14px 16px; font-size: 1rem;
            border: 2px solid var(--input-border); border-radius: 12px;
            background: var(--input-bg); color: var(--text-dark);
            transition: all 0.2s ease;
        }
        .form-control:focus {
            outline: none; border-color: var(--input-focus);
            background: white; box-shadow: 0 0 0 4px var(--primary-shadow-light);
        }
        .form-control::placeholder { color: #adb5bd; }

        .input-icon-wrapper { position: relative; }
        .input-icon-wrapper i {
            position: absolute; left: 16px; top: 50%;
            transform: translateY(-50%); color: var(--text-muted);
        }
        .input-icon-wrapper .form-control { padding-left: 44px; }

        .btn {
            width: 100%; padding: 14px 24px; font-size: 1rem;
            font-weight: 600; border: none; border-radius: 12px;
            cursor: pointer; transition: all 0.3s ease;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-primary { background: var(--bg-gradient); color: white; }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px var(--primary-shadow);
        }

        .reset-footer {
            text-align: center; margin-top: 24px; padding-top: 24px;
            border-top: 1px solid var(--input-border);
        }
        .reset-footer p { color: var(--text-muted); font-size: 0.9rem; }
        .reset-footer a {
            color: var(--primary-color); text-decoration: none; font-weight: 600;
        }
        .reset-footer a:hover { text-decoration: underline; }

        .back-link {
            display: inline-flex; align-items: center; gap: 8px;
            color: white; text-decoration: none; font-size: 0.95rem;
            margin-bottom: 24px; opacity: 0.9; transition: opacity 0.2s;
        }
        .back-link:hover { opacity: 1; }

        .success-icon {
            text-align: center; margin-bottom: 24px;
        }
        .success-icon i {
            font-size: 3rem; color: var(--primary-color);
        }

        @media (max-width: 480px) {
            .reset-card { padding: 32px 24px; }
        }
