/* Sign-in page. Colors come from css/theme.css (CEMCO blue, ink, grays).
   The background image stays; a dark wash on the left keeps the card readable
   and leaves the artwork on the right in view. */

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-variant-numeric: tabular-nums;
    color: var(--text);
    background: #05080b url('../images/cemcobackground.png') center / cover no-repeat;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(3, 8, 12, 0.55) 0%, rgba(3, 8, 12, 0.25) 60%, rgba(3, 8, 12, 0) 100%);
    pointer-events: none;
}

.login-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 36px 36px 28px;
    box-sizing: border-box;
    background: var(--surface);
    border-top: 4px solid var(--brand-blue);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.login-logo {
    display: block;
    height: 34px;
    margin-bottom: 28px;
}

.login-title {
    margin: 0 0 22px;
    color: var(--brand-ink);
    font-size: 24px;
    font-weight: 700;
}

.login-sub {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #fdecea;
    color: #a12c20;
    font-size: 14px;
    font-weight: 600;
}

.login-error svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: currentColor;
}

.login-label {
    display: block;
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--brand-ink);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input::placeholder {
    color: #9aa4ae;
}

.login-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 184, 0.18);
}

.login-input[aria-invalid="true"] {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.login-password {
    position: relative;
}

.login-password .login-input {
    padding-right: 64px;
}

.login-reveal {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--brand-blue);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.login-reveal:hover {
    background: var(--brand-blue-tint);
}

.login-reveal:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 1px;
}

.login-caps {
    margin: -10px 0 14px;
    color: #7a5600;
    font-size: 13px;
    font-weight: 600;
}

.login-submit {
    width: 100%;
    margin-top: 6px;
    padding: 11px 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand-blue);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.login-submit:hover:not(:disabled) {
    background: var(--brand-blue-dark);
}

.login-submit:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

.login-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

.login-foot {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 13px;
}

/* Narrow windows: a little less padding inside the card */
@media (max-width: 760px) {
    .login-card {
        padding: 28px 22px 22px;
    }
}

/* ---------- Verify (the emailed code) ---------- */

.login-code {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
}

.login-notice {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #e6f4ea;
    color: #1e6b34;
    font-size: 14px;
    font-weight: 600;
}

.login-row {
    display: flex;
    justify-content: space-between;
    margin: 14px 0 0;
}

.login-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-blue);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.login-link:hover {
    color: var(--brand-blue-dark);
    text-decoration: underline;
}

/* a link styled as the main button (reset page: "Go to sign in") */
a.login-submit--link {
    display: block;
    box-sizing: border-box;  /* like the real buttons: the padding stays inside the card */
    text-align: center;
    text-decoration: none;
}
