/* -------------------------------------------
   Auth Pages Shared Styles
------------------------------------------- */

/* Login Page */
.login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    background: linear-gradient(135deg, rgba(15, 53, 115, 0.06), rgba(65, 201, 127, 0.08));
}

.login-card {
    width: 100%;
    max-width: 960px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(15, 21, 53, 0.18);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-hero {
    padding: 48px 44px;
    background: radial-gradient(circle at top, rgba(65, 201, 127, 0.2), transparent 65%),
                radial-gradient(circle at bottom, rgba(15, 108, 189, 0.18), transparent 55%),
                #0f3573;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-hero h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 32px 0 18px;
    color: #ffffff;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.login-hero p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.login-support {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.login-support strong {
    color: #ffffff;
    font-weight: 700;
}

.login-form {
    padding: 48px 44px;
}

.login-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.login-title h3 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #103573;
    margin: 0;
}

.login-title img {
    height: 60px;
    width: auto;
}

.login-form > p {
    color: #6c7a91;
    margin-bottom: 24px;
}

.login-subtitle {
    color: #5a6785;
    font-size: 1.05rem;
    margin-bottom: 22px;
}

.login-subtitle-emphasis {
    background: rgba(65, 201, 127, 0.16);
    border-left: 4px solid rgba(65, 201, 127, 0.55);
    padding: 16px 20px;
    border-radius: 12px;
    color: #0B3B2E;
    font-size: 1.12rem;
    font-weight: 600;
}

.login-form > p.login-subtitle-emphasis {
    color: #0B3B2E;
}

.login-subtitle-emphasis strong {
    color: #06291C;
    font-weight: 700;
}

.login-form .form-group + .form-group {
    margin-top: 20px;
}

.login-form .pwdMask {
    position: relative;
}

.login-form .pwdMask .pwd-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0a9bd;
}

.login-form .pwdMask input.form-control {
    padding-right: 44px;
}

.login-form .remember-row {
    margin-top: 8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.login-form .form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-form .form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.login-form .form-check-label {
    margin: 0;
    font-size: 1.25rem;
    color: #5a6785;
    white-space: nowrap;
}

.forgot-password-link {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #103573;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

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

.link-primary-cta {
    color: #103573;
    font-weight: 700;
    text-decoration: none;
}

.link-primary-cta:hover {
    text-decoration: underline;
}

.login-form .btn {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 12px;
}

.login-notice {
    margin-top: 26px;
    background: rgba(255, 214, 102, 0.14);
    border: 1px solid rgba(255, 214, 102, 0.45);
    border-radius: 12px;
    padding: 18px 20px;
    color: #7a6405;
    font-size: 1.05rem;
}

@media (max-width: 991.98px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-hero {
        padding: 36px 32px;
        text-align: center;
        align-items: center;
    }

    .login-hero h2 {
        font-size: 1.8rem;
    }

    .login-form {
        padding: 36px 32px;
    }
}

@media (max-width: 575.98px) {
    .login-form h3 {
        font-size: 1.6rem;
    }

    .login-hero h2,
    .login-hero p {
        text-shadow: none;
    }
}

/* Reset Password Page */
.reset-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.reset-panel {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 21, 53, 0.12);
    padding: 48px 42px;
}

.reset-panel .authfy-heading p {
    color: #7a6405;
    background: rgba(255, 214, 102, 0.18);
    border: 1px solid rgba(255, 214, 102, 0.45);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1.25rem;
    margin-top: 18px;
}

.reset-panel .form-group + .form-group {
    margin-top: 20px;
}

.reset-panel .pwdMask {
    position: relative;
}

.reset-panel .pwdMask .pwd-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0a9bd;
}

.reset-panel .pwdMask input.form-control {
    padding-right: 44px;
}

.reset-panel .btn {
    padding-top: 12px;
    padding-bottom: 12px;
    font-weight: 600;
}

.reset-panel .invalid-feedback {
    display: block;
    font-size: 1.25rem;
    color: #d17a8a;
    margin-top: 6px;
}
.reset-back-link {
    color: #103573;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

.reset-back-link:hover {
    text-decoration: underline;
}
.forgot-password-form .invalid-feedback {
    display: block;
    font-size: 1.25rem;
    color: #d17a8a;
    margin-top: 6px;
}


.reset-panel .alert-danger {
    color: #b94a63;
    background-color: rgba(236, 147, 167, 0.18);
    border-color: rgba(236, 147, 167, 0.45);
}

.password-requirements {
    margin-top: 24px;
    background: rgba(255, 214, 102, 0.12);
    border: 1px solid rgba(255, 214, 102, 0.4);
    border-radius: 12px;
    padding: 18px 20px;
}

.password-requirements.complete {
    background: rgba(65, 201, 127, 0.12);
    border-color: rgba(65, 201, 127, 0.4);
}

.password-requirements strong {
    display: block;
    margin-bottom: 10px;
    color: #7a6405;
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #b26a09;
}

.password-requirements li .state-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: #d17a8a;
}

.password-requirements li.met {
    color: #1f8457;
}

.password-requirements li.met .state-icon {
    color: #1f8457;
}

@media (max-width: 767.98px) {
    .reset-panel {
        padding: 36px 28px;
    }
}

/* Reset Success Page */
.success-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: linear-gradient(135deg, rgba(15, 53, 115, 0.06), rgba(65, 201, 127, 0.08));
}

.success-card {
    max-width: 520px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 21, 53, 0.15);
    padding: 48px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(65, 201, 127, 0.25), transparent 60%),
                radial-gradient(circle at bottom, rgba(15, 108, 189, 0.12), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.success-card > * {
    position: relative;
    z-index: 1;
}

.success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(65, 201, 127, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #21a366;
    font-size: 42px;
}

.success-card h3 {
    font-size: 1.9rem;
    margin-bottom: 12px;
    color: #103573;
    font-weight: 700;
}

.success-card p {
    color: #5a6785;
    margin-bottom: 28px;
    font-size: 1.25rem;
    line-height: 1.6;
}

.success-redirect-box {
    background: rgba(255, 214, 102, 0.18);
    border: 1px solid rgba(255, 214, 102, 0.45);
    border-radius: 12px;
    padding: 18px 20px;
    color: #7a6405;
    font-size: 1.05rem;
}

.success-redirect-count {
    margin-top: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #103573;
}

.success-footer {
    margin-top: 32px;
    font-size: 1rem;
    color: #8d96ab;
}

.success-footer strong {
    color: #103573;
    font-weight: 700;
    font-style: italic;
}

@media (max-width: 575.98px) {
    .success-card {
        padding: 36px 26px;
    }

    .success-card h3 {
        font-size: 1.6rem;
    }
}

/* Token Expired Page */
.token-expired-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.token-expired-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(15, 21, 53, 0.14);
    padding: 56px 60px;
    text-align: center;
    max-width: 760px;
    width: 100%;
}

.token-expired-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 26px;
    border-radius: 50%;
    background: rgba(236, 147, 167, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b94a63;
    font-size: 40px;
}

.token-expired-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #103573;
    margin-bottom: 16px;
}

.token-expired-subtitle {
    font-size: 1.15rem;
    color: #5a6785;
    margin-bottom: 24px;
}

.token-expired-alert {
    font-size: 1.05rem;
    color: #7a6405;
    background: rgba(255, 214, 102, 0.18);
    border-color: rgba(255, 214, 102, 0.45);
    border-radius: 12px;
}

.token-expired-countdown {
    margin-top: 22px;
    color: #5a6785;
    font-weight: 600;
}

.token-expired-countdown-value {
    color: #103573;
    font-size: 1.4rem;
    margin: 0 6px;
}

.token-expired-actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.token-expired-actions .btn {
    min-width: 180px;
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 20px;
}

.token-expired-login-btn {
    background: #27ae60;
    border-color: #27ae60;
}

.token-expired-login-btn:hover,
.token-expired-login-btn:focus {
    background: #1f8a4d;
    border-color: #1f8a4d;
}

@media (max-width: 575.98px) {
    .token-expired-card {
        padding: 36px 28px;
        max-width: 100%;
    }

    .token-expired-title {
        font-size: 1.6rem;
    }
}

