/* ==========================================================================
   FOMS Admin — Auth pages (login / forgot password / reset password)
   Uses the same Bootstrap components as the rest of the panel;
   this file only adds the centered-card page layout.
   ========================================================================== */

body.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem;
    background: #f4f6f9;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-logo img {
    height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* password visibility toggle inside a form-control */
.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-has-toggle {
    padding-right: 2.75rem;
}

.auth-toggle {
    position: absolute;
    top: 50%;
    right: 0.375rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
}

.auth-toggle:hover {
    color: #212529;
    background: rgba(0, 0, 0, 0.05);
}

.auth-toggle svg {
    width: 16px;
    height: 16px;
}

.auth-toggle .auth-icon-off {
    display: none;
}

.auth-toggle.is-visible .auth-icon-on {
    display: none;
}

.auth-toggle.is-visible .auth-icon-off {
    display: inline-flex;
}

/* caps lock hint */
.auth-hint {
    display: none;
    margin-top: 0.3rem;
}

.auth-hint.is-shown {
    display: block;
}

/* password strength meter (reset page) */
.auth-strength {
    margin-top: 0.5rem;
}

.auth-strength-bars {
    display: flex;
    gap: 4px;
}

.auth-strength-bars span {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: #dee2e6;
}

.auth-strength[data-level='1'] .auth-strength-bars span:nth-child(-n+1) {
    background: #dc3545;
}

.auth-strength[data-level='2'] .auth-strength-bars span:nth-child(-n+2) {
    background: #ffc107;
}

.auth-strength[data-level='3'] .auth-strength-bars span:nth-child(-n+3) {
    background: #198754;
}

.auth-strength[data-level='4'] .auth-strength-bars span:nth-child(-n+4) {
    background: #198754;
}

.auth-strength-label {
    display: block;
    margin-top: 0.3rem;
}

.auth-match {
    display: none;
    margin-top: 0.3rem;
}

.auth-match.is-shown {
    display: block;
}

.auth-match svg {
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    margin-right: 3px;
}

.auth-legal {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 1.25rem 1rem;
    }

    .auth-input-wrap .auth-has-toggle,
    .form-control {
        font-size: 16px; /* prevents iOS zoom-on-focus */
    }

    .auth-card .card-body {
        padding: 1.5rem 1.15rem;
    }
}
