/* kmsi-dashboard/src/Dashboard.Web/wwwroot/css/auth.css
   Responsive and theme styles for authentication pages (login/register/forgot password)
   - Move page-scoped styles here and import this file from the auth layout.
*/

/* Base page / card layout */
.auth-card {
    width: 100%;
    max-width: 520px;
    /* comfortable reading width on large screens */
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(6, 12, 34, 0.28);
    padding: 2.25rem;
    margin: 0 1rem;
    /* small horizontal gutter on narrow screens */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    overflow: visible;
}

/* Brand area */
.auth-card .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-card .brand img {
    display: block;
    height: 56px;
    max-width: 100%;
}

/* Headings and lead */
.auth-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0.375rem 0 0.125rem;
    letter-spacing: 0.5px;
    color: #0f1724;
    text-align: center;
}

.auth-card .lead {
    text-align: center;
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Form controls */
.auth-card .form-control {
    min-height: 44px;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    /* subtle neutral border */
    background-color: #FFFFFF;
    color: #111827;
    font-weight: 400;
    /* regular font weight inside inputs */
    box-sizing: border-box;
}

/* Password toggle button */
#togglePassword,
#toggleConfirmPassword {
    border-radius: 8px;
    min-width: 48px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.55rem;
    /* remove vertical padding so height stays fixed */
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease, transform .06s ease;
    border: 1px solid #D1D5DB;
    /* match input border */
    background-color: #FFFFFF;
    color: inherit;
    font-weight: 400;
    /* ensure regular weight if any text appears */
    align-self: flex-start;
    /* keep the button aligned to the top of the input row when validation appears */
}

#togglePassword.active,
#togglePassword:active,
#toggleConfirmPassword.active,
#toggleConfirmPassword:active {
    background-color: rgba(13, 110, 253, 0.06);
    border-color: rgba(13, 110, 253, 0.15);
}

/* Make sure the svg-icon inside the button scales nicely */
#togglePassword .svg-icon,
#toggleConfirmPassword .svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.auth-footer {
    margin-top: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.d-flex.gap-2>.flex-grow-1 {
    min-width: 0;
}
