/* =============================================================
   ADMIN LOGIN PAGE
   Loaded by login view files using adminBlank layout.
   Overrides body#empty-page and #sheet_wide from adminBlank.
   ============================================================= */

body#empty-page {
    background: linear-gradient(160deg, #dce3ec 0%, #c8d3e0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body#empty-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Turn the adminBlank container into a flex centering wrapper */
body#empty-page #sheet_wide {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem !important;
    position: relative;
    z-index: 1;
}

/* ---- Card wrapper ---- */
.ns-login-wrap {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ns-login-card {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ns-login-card.login-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Logo band (navy, top of card) ---- */
.ns-login-logo {
    background: #1e2b45;
    text-align: center;
    padding: 0.9rem 2rem 0.7rem;
    border-bottom: 2px solid #3d7ebf;
}

.ns-login-logo img {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.85;
}

.ns-login-logo-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 0.35rem;
}

/* ---- Form body ---- */
.ns-login-form {
    padding: 1.75rem 2rem 2rem;
}

.ns-login-form .form-control {
    border-color: #a0aec0;
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ns-login-form .form-control:focus {
    border-color: #3d7ebf;
    box-shadow: 0 0 0 3px rgba(61, 126, 191, 0.18);
}

.ns-login-form .btn-primary {
    background: #3d7ebf;
    border-color: #3d7ebf;
    padding: 0.65rem 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 6px;
    margin-top: 0.25rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.ns-login-form .btn-primary:hover {
    background: #2c62a0;
    border-color: #2c62a0;
}

.ns-login-form .btn-primary:active {
    transform: scale(0.99);
}

/* ---- Alert overrides inside the card ---- */
.ns-login-form .alert {
    font-size: 0.875rem;
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
}

/* ---- Forgot password / secondary links ---- */
.ns-login-links {
    text-align: center;
    margin-top: 0.75rem;
}

.ns-login-links a {
    font-size: 0.82rem;
    color: #6b82a0;
    text-decoration: none;
    display: inline-block;
    margin: 0.2rem 0;
}

.ns-login-links a:hover {
    color: #3d7ebf;
    text-decoration: underline;
}

/* ---- Footer below card ---- */
.ns-login-footer {
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.72rem;
    text-align: center;
    margin-top: 1.5rem;
}

/* ---- Fallback "I'm not a robot" checkbox (shown after an invisible-reCAPTCHA failure) ---- */
.ns-recaptcha-challenge {
    display: flex;
    justify-content: center;
}
