/* ── Auth Pages ───────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('huawei-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-x: hidden;
}

/* Background Glow Rings */
.auth-bg-glow {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 750px;
    height: 750px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.auth-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid rgba(230, 0, 18, 0.035);
}

.auth-bg-circle-1 {
    width: 680px;
    height: 680px;
}

.auth-bg-circle-2 {
    width: 500px;
    height: 500px;
    border-style: dashed;
    border-color: rgba(230, 0, 18, 0.05);
}

.auth-bg-circle-3 {
    width: 320px;
    height: 320px;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    position: relative;
    z-index: 1;
}

.auth-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.auth-left-panel {
    display: flex;
    align-items: center;
}

/* ── Auth Left Content ─────────────────────────────── */
.auth-left-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-right: 20px;
    max-width: 480px;
}

.auth-left-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-left-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.auth-left-logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--dark);
    text-transform: uppercase;
}

.auth-left-logo-text span {
    color: var(--primary);
}

.auth-left-headline {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -1px;
}

.auth-left-accent {
    color: var(--primary);
}

.auth-left-desc {
    font-size: 15px;
    color: var(--dark-muted);
    line-height: 1.75;
    max-width: 400px;
}

.auth-left-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-left-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.auth-feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.auth-left-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background-color: rgba(230, 0, 18, 0.05);
    border: 1px solid rgba(230, 0, 18, 0.12);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-muted);
}

.auth-left-trust [data-lucide] {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.auth-right-panel {
    display: flex;
    justify-content: flex-end;
}

.auth-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(12, 13, 14, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.035);
    position: relative;
}

/* Icon Badge */
.auth-icon-badge {
    width: 52px;
    height: 52px;
    background-color: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-icon-badge [data-lucide] {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--dark-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Input with icon styling */
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: var(--gray-500);
    pointer-events: none;
}

.input-icon-wrap input {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--white);
}

.input-icon-wrap .input-icon+input {
    padding-left: 44px;
}

.input-icon-wrap input:has(+ .input-eye-btn) {
    padding-right: 44px;
}

.input-icon-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, .08);
}

.input-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    padding: 4px;
    transition: var(--transition);
}

.input-eye-btn:hover {
    color: var(--dark);
}

.input-eye-btn [data-lucide] {
    width: 16px;
    height: 16px;
}

/* Remember me / Forgot password row */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-muted);
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.remember-me input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Submit button */
.btn-auth-submit {
    width: 100%;
    padding: 13px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(230, 0, 18, .2);
    transition: var(--transition);
    margin-bottom: 24px;
}

.btn-auth-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(230, 0, 18, .3);
}

.btn-auth-submit [data-lucide] {
    width: 16px;
    height: 16px;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 4px 0 18px;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--gray-200);
}

.auth-divider span {
    position: relative;
    background-color: var(--white);
    padding: 0 12px;
    font-size: 12px;
    color: var(--gray-500);
}

/* Social buttons */
.auth-social-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.auth-social-btn:hover {
    border-color: var(--gray-500);
    background-color: var(--gray-100);
}

/* Switch text */
.auth-switch-text {
    text-align: center;
    font-size: 14px;
    color: var(--dark-muted);
}

.auth-switch-link {
    color: var(--primary);
    font-weight: 600;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

.auth-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--dark-muted);
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form input {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, .08);
}

.btn-auth-submit {
    width: 100%;
    padding: 13px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(230, 0, 18, .2);
    transition: var(--transition);
    margin-top: 8px;
}

.btn-auth-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(230, 0, 18, .3);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--dark-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-box {
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert-box-error {
    background-color: #fff5f5;
    color: #c53030;
    border-color: #feb2b2;
}

.alert-box-success {
    background-color: #f0fff4;
    color: #276749;
    border-color: #9ae6b4;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-content: center;
    }
    
    .auth-left-panel {
        display: none; /* Hide the decorative left panel on smaller screens to focus on the form */
    }
    
    .auth-right-panel {
        justify-content: center;
        width: 100%;
    }
    
    .auth-card {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 80px 15px 40px;
    }
    
    .auth-card {
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    
    .auth-bg-glow {
        display: none; /* Disable heavy background animations on mobile */
    }
    
    .auth-header h2 {
        font-size: 20px;
    }
    
    .btn-auth-submit {
        padding: 14px;
        font-size: 16px;
    }
}
