/* ================================================================
   ADMIN SIGN IN
   Scoped to the login page. login_admin.css is left alone because
   register.php and generic.php still depend on its markup.
   ================================================================ */

/* ── Shell overrides ─────────────────────────────────────────────────
   The layout's .working-box draws its own drop-shadowed panel and this
   page supplies a card, so it has to become a plain wrapper. Safe to do
   globally here: this stylesheet is only loaded by the login page.
   ------------------------------------------------------------------- */
.admin_container {
    padding: 30px 0 0 0 !important;
}
.working-box {
    box-shadow: none !important;
    padding: 0 !important;
    width: 95% !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0 auto !important;
}

/* default_admin_new.php ships a global `label { position:absolute; left:8px;
   top:16px }` to drive its float-label inputs. A label that does not opt out
   is torn out of flow and lands over the masthead - which is exactly where
   these two ended up. */
.al-field label {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    pointer-events: auto;
}

.al-wrap {
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 20px 60px;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.al-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(17, 50, 110, 0.09);
    overflow: hidden;
}

.al-head {
    padding: 22px 30px;
    background: linear-gradient(135deg, #11326E, #1a4a9e);
    text-align: center;
}
.al-head img {
    height: 34px;
    width: auto;
    display: block;
    margin: 0 auto 12px;
}
.al-head h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.al-body {
    padding: 28px 30px 30px;
}

.al-field {
    margin-bottom: 16px;
}
.al-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.al-field input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s;
}
.al-field input:focus {
    outline: none;
    border-color: #11326E;
    box-shadow: 0 0 0 3px rgba(17, 50, 110, 0.12);
}

.al-btn {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    background: #11326E;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background .15s;
}
.al-btn:hover { background: #1a4a9e; }

.al-error {
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.5;
}

.al-success {
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
    line-height: 1.5;
}

.al-note {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

/* emailed sign-in link, tucked under the password form */
.al-link-login {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.al-link-login summary {
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #11326E;
}
.al-link-login[open] summary {
    margin-bottom: 16px;
}
.al-btn-alt {
    background: #fff;
    color: #11326E;
    border: 1px solid #11326E;
}
.al-btn-alt:hover {
    background: #11326E;
    color: #fff;
}

/* www has no admin of its own - it points at the product sites */
.al-choose-intro {
    margin: 0 0 16px;
    font-size: 14px;
    color: #475569;
    text-align: center;
}
.al-choose {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.al-choose a {
    display: block;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #11326E;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.al-choose a:hover {
    background: #11326E;
    border-color: #11326E;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .al-wrap { padding: 26px 14px 40px; }
    .al-body { padding: 22px 20px 24px; }
}
