/* ============================================================
   WorkVista — Authentication Page Styles
   Login, Register, Forgot Password, Reset Password
   ============================================================ */

/* ---- Auth Layout ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow-x: hidden;
}

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

.auth-left::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 191, 166, 0.1), transparent);
    border-radius: 50%;
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.3), transparent);
    border-radius: 50%;
}

.auth-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 440px;
}

.auth-left-content .auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.auth-left-content .auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    font-weight: 800;
}

.auth-left-content .auth-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}

.auth-left-content .auth-logo .logo-text span {
    color: var(--teal);
}

.auth-left-content h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-left-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.auth-feature i {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(0, 191, 166, 0.15);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Right Panel — Form */
.auth-right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    background: var(--gray-50);
    overflow-y: auto;
    max-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.auth-card-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ---- Social Login Buttons ---- */
.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
    transform: translateY(-1px);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.social-btn.google {
    color: #4285F4;
}

.social-btn.linkedin {
    color: #0A66C2;
}

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

.auth-form .form-label {
    font-size: 0.88rem;
}

.auth-form .form-input {
    padding: 13px 16px;
}

.auth-form .input-group .form-input {
    padding-left: 44px;
}

.auth-form .input-group .input-action~.form-input,
.auth-form .input-group .form-input:has(~ .input-action) {
    padding-right: 44px;
}


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

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

.auth-remember label input[type="checkbox"] {
    accent-color: var(--teal);
}

.auth-remember a {
    font-size: 0.9rem;
    color: var(--teal);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-remember a:hover {
    color: var(--teal-dark);
}

.auth-submit {
    width: 100%;
    padding: 14px;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 166, 0.3);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.auth-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-submit.loading i {
    animation: spin 0.8s linear infinite;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--teal);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--teal-dark);
}

/* ---- Password Strength Indicator ---- */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.password-strength .bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    transition: background var(--transition-fast);
}

.password-strength.weak .bar:nth-child(1) {
    background: var(--red);
}

.password-strength.fair .bar:nth-child(1),
.password-strength.fair .bar:nth-child(2) {
    background: var(--orange);
}

.password-strength.good .bar:nth-child(1),
.password-strength.good .bar:nth-child(2),
.password-strength.good .bar:nth-child(3) {
    background: var(--teal);
}

.password-strength.strong .bar {
    background: var(--green);
}

.password-label {
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
}

.password-label.weak {
    color: var(--red);
}

.password-label.fair {
    color: var(--orange);
}

.password-label.good {
    color: var(--teal);
}

.password-label.strong {
    color: var(--green);
}

/* ---- Role Selector ---- */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.role-option {
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.role-option:hover {
    border-color: var(--teal);
    background: rgba(0, 191, 166, 0.03);
}

.role-option.active {
    border-color: var(--teal);
    background: rgba(0, 191, 166, 0.05);
}

.role-option i {
    font-size: 1.8rem;
    color: var(--teal);
    margin-bottom: 10px;
}

.role-option h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.role-option p {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin: 0;
}

/* ---- Multi-Step Form ---- */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.step-dot.active {
    background: var(--gradient-primary);
    color: white;
}

.step-dot.completed {
    background: var(--green);
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    transition: background var(--transition-fast);
}

.step-line.active {
    background: var(--green);
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ---- Verified / Success Page ---- */
.auth-success {
    text-align: center;
    padding: 40px 20px;
}

.auth-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 191, 166, 0.1);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.auth-success h2 {
    margin-bottom: 12px;
}

.auth-success p {
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Mobile Auth ---- */
.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.auth-mobile-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1024px) {
    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 24px;
    }

    .auth-mobile-logo {
        display: block;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 24px 16px;
        box-shadow: none;
        border: none;
        background: transparent;
        max-width: 100%;
    }

    .auth-right {
        background: var(--white);
        padding: 24px 12px;
        align-items: flex-start;
    }

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

    .social-login {
        flex-direction: column;
    }

    /* Step navigation — stack on very small screens */
    .step-panel>div[style*="display: flex"] {
        flex-wrap: wrap;
    }

    .auth-submit {
        min-width: 0;
        font-size: 0.9rem;
    }
}