/* ============================================================
   Achol HR - Auth Pages Stylesheet (Redesigned)
   ============================================================ */


/* ============================================================
   1. AUTH SECTION
   ============================================================ */

.auth-section {
    background: var(--primary-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.04;
    pointer-events: none;
}

.auth-section-single {
    padding: 40px 20px;
}


/* ============================================================
   2. AUTH CARD WRAPPER
   ============================================================ */

.auth-single-wrapper {
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.auth-single-wrapper-sm {
    max-width: 440px;
}

.auth-single-wrapper-md {
    max-width: 520px;
}


/* ============================================================
   3. AUTH CARD
   ============================================================ */

.auth-single-card {
    background: var(--white);
    padding: 44px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.04);
}


/* ============================================================
   4. AUTH LOGO
   ============================================================ */

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    text-decoration: none;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: var(--white);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.auth-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}


/* ============================================================
   5. AUTH ICON (For OTP, Forgot, Reset)
   ============================================================ */

.auth-single-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
}


/* ============================================================
   6. AUTH HEADER
   ============================================================ */

.auth-single-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-single-header h1 {
    font-size: 1.65rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-single-header p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}


/* ============================================================
   7. FORM ELEMENTS
   ============================================================ */

.auth-form {
    margin-top: 8px;
}

.auth-form .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.auth-form .form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid var(--grey-medium);
    transition: var(--transition);
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 78, 232, 0.1);
}


/* Label Row (password + forgot link) */
.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

.form-label-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.form-label-link:hover {
    text-decoration: underline;
}


/* ============================================================
   8. PASSWORD TOGGLE
   ============================================================ */

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
}


/* ============================================================
   9. CHECKBOX (Terms Agreement)
   ============================================================ */

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0;
}

.form-check-input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 6px;
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.form-check-label a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}


/* ============================================================
   10. FORM SUBMIT
   ============================================================ */

.auth-form .form-submit {
    margin-top: 24px;
}

.auth-form .form-submit .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 12px;
}

.auth-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ============================================================
   11. ALTERNATIVE LINKS
   ============================================================ */

.auth-alt-link {
    text-align: center;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-alt-link a {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
    text-decoration: none;
}

.auth-alt-link a:hover {
    text-decoration: underline;
}

.auth-alt-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.auth-alt-link-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.auth-alt-link-item:hover {
    color: var(--primary);
}

.auth-alt-divider {
    color: var(--text-muted);
    font-size: 13px;
}


/* ============================================================
   12. FORM OPTIONAL
   ============================================================ */

.form-optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.form-help {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}


/* ============================================================
   13. DISABLED INPUTS
   ============================================================ */

.form-control:disabled,
.form-control[readonly] {
    background: var(--grey-lightest);
    color: var(--text-muted);
    cursor: not-allowed;
}


/* ============================================================
   14. OTP INPUT
   ============================================================ */

.otp-group {
    text-align: center;
}

.otp-input {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 10px;
    color: var(--text-primary);
    padding: 16px;
    border: 2px solid var(--grey-medium);
    border-radius: 16px;
    max-width: 240px;
    margin: 0 auto;
    display: block;
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 78, 232, 0.1);
    outline: none;
}


/* ============================================================
   15. OTP EXPIRY + RESEND
   ============================================================ */

.otp-expiry-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.otp-resend-wrapper {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-medium);
    text-align: center;
}

.otp-resend-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.otp-countdown {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-text-link:hover {
    color: var(--primary-dark);
}


/* ============================================================
   16. RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .auth-section,
    .auth-section-single {
        padding: 24px 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-single-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-single-header h1 {
        font-size: 1.45rem;
    }

    .otp-input {
        font-size: 1.65rem;
        letter-spacing: 8px;
        max-width: 200px;
    }

    .form-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .auth-alt-links {
        gap: 10px;
    }
}

@media (max-width: 400px) {

    .auth-single-card {
        padding: 28px 20px;
    }

    .auth-single-header h1 {
        font-size: 1.3rem;
    }

    .otp-input {
        font-size: 1.4rem;
        letter-spacing: 6px;
        max-width: 180px;
    }
}


/* ============================================================
   END OF AUTH STYLESHEET
   ============================================================ */