/* ==========================================================================
   Log in — the account entry point.

   The page deliberately reuses the public shell from landing.css: the black
   masthead, the red title band (.ev-banner) and the pale working area
   (.ev-verify) with a single white panel (.ev-panel). That is the same
   construction the verification pages use, so the two read as one product.

   Everything below is only the card's own furniture and the toast stack
   that sign-in.js swaps messages into.
   ========================================================================== */

body.signin { background: var(--mist); }

/* One narrow, centred column rather than the full-width verification panel. */
.signin .ev-panel {
    width: min(100%, 470px);
    margin-inline: auto;
}

.signin .ev-panel-head {
    margin-bottom: 26px;
    text-align: center;
}
.signin .ev-panel-title { margin-bottom: 7px; }
.signin .ev-panel-sub { margin-bottom: 0; }

/* The form fills the card instead of floating at the verification width. */
.signin .ev-form { width: 100%; }
.signin .ev-field { margin-bottom: 15px; }

/* The primary action carries the same lock mark as the reference portal. */
.signin .ev-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 10px;
}
.signin .ev-submit svg { width: 17px; height: 17px; flex: 0 0 auto; }

.signin-help {
    margin: 24px 0 0;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: #7c8698;
}

/* --------------------------------------------------------------- toasts --
   sign-in.js keeps a single toast in this stack. The message text already
   states the outcome, so colour is only reinforcement, never the signal.
   ------------------------------------------------------------------------ */

.toast-stack {
    position: fixed;
    z-index: 40;
    right: 20px;
    bottom: 20px;
    width: min(360px, calc(100% - 40px));
}

.signin-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 9px;
    background: var(--paper);
    color: var(--primary);
    box-shadow: 0 18px 44px rgba(8, 0, 2, .18);
    font-size: 14px;
    animation: signin-toast-in .22s ease both;
}
.signin-toast[data-success="true"] { border-left-color: #16a34a; }

.signin-toast p { flex: 1; margin: 0; line-height: 1.5; }

.signin-toast button {
    border: 0;
    padding: 0 2px;
    background: transparent;
    color: #9aa3b2;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.signin-toast button:hover { color: var(--primary); }

@keyframes signin-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- refinements -- */

@media (max-width: 520px) {
    .toast-stack { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .signin-toast { animation: none; }
}
