/* ============================================
   AUTH PAGES - Premium Styling
   Split-screen layout with glassmorphism
============================================ */

:root {
    --auth-primary: #0077b5;
    --auth-primary-dark: #005a8c;
    --auth-accent: #00d4ff;
    --auth-dark: #0a2e4a;
    --auth-gradient: linear-gradient(135deg, #0077b5 0%, #00a8cc 50%, #00d4ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--auth-dark);
    min-height: 100vh;
}

/* Auth Wrapper - Split Screen */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left Panel - Branding */
.auth-branding {
    flex: 0 0 45%;
    background: var(--auth-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.auth-branding::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
}

.branding-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 400px;
}

.branding-content .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-bottom: 40px;
}

.branding-content .logo-text {
    font-size: 48px;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.branding-content .logo-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    letter-spacing: 1px;
}

.branding-illustration {
    font-size: 120px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.branding-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.branding-content p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 30px;
}

.branding-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    color: #00ff88;
}

/* Right Panel - Form */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fafc;
}

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

.auth-header {
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--auth-dark);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: #64748b;
}

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

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert ul li {
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-success i {
    color: #10b981;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-error i {
    color: #ef4444;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--auth-primary);
    font-size: 14px;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 181, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--auth-primary);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

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

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

.forgot-link {
    font-size: 13px;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Button */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth.primary {
    background: var(--auth-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.btn-auth.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 119, 181, 0.4);
}

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

/* Auth Footer */
.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: #64748b;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-branding {
        flex: 0 0 40%;
        padding: 40px;
    }

    .branding-illustration {
        font-size: 80px;
    }

    .branding-content h2 {
        font-size: 24px;
    }
}

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

    .auth-branding {
        flex: none;
        padding: 40px 20px;
        min-height: auto;
    }

    .branding-content .logo-text {
        font-size: 36px;
    }

    .branding-illustration {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .branding-content h2,
    .branding-content p,
    .branding-features {
        display: none;
    }

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

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

/* ---- Field Errors ---- */
.field-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
    display: block;
}

.form-group input.input-error,
.form-group select.input-error {
    border-color: #ef4444;
}

.form-group input.input-success,
.form-group select.input-success {
    border-color: #10b981;
}

/* ---- Password Strength Meter ---- */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.strength-label {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 50px;
    text-align: right;
}

/* ---- Password Requirements Checklist ---- */
.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.password-requirements .req {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.password-requirements .req i {
    font-size: 6px;
    transition: all 0.2s;
}

.password-requirements .req.met {
    color: #10b981;
}

.password-requirements .req.met i {
    font-size: 10px;
}

.password-requirements .req.met i::before {
    content: "\f058";
}

/* ---- Login Security Note ---- */
.login-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.login-security-note i {
    color: #10b981;
    font-size: 14px;
}

@media (max-width: 480px) {
    .auth-header h1 {
        font-size: 26px;
    }

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

    .password-requirements {
        grid-template-columns: 1fr;
    }
}