/*
 | Full-bleed split-panel auth screens (sign-in, forgot/reset password).
 | Deliberately independent of the AdminLTE stylesheet — this is the very
 | first thing anyone sees and should not look like an admin template.
 */
:root {
    --brand: #0f5c56;
    --brand-ink: #0b433f;
    --brand-dark: #0a332f;
    --gold: #b8862c;
    --ink: #16202e;
    --ink-2: #4b5768;
    --ink-3: #85909e;
    --line: #e3e7ed;
    --surface: #ffffff;
    --ground: #f4f6f9;
    --bad: #ac3529;
    --bad-soft: #fbe6e3;
    --good: #1c7a55;
    --good-soft: #e3f4ec;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground);
    display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px;
}

.auth-shell {
    display: flex; width: 100%; max-width: 980px; min-height: 600px;
    background: var(--surface); border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 70px -30px rgba(11,67,63,.35);
}

.auth-panel {
    flex: 1 1 46%; position: relative; padding: 36px;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff; display: flex; flex-direction: column; justify-content: space-between;
    min-width: 0;
}
.auth-badge { display: flex; }
.auth-badge-mark {
    width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 800; font-size: 15px;
    display: flex; align-items: center; justify-content: center; letter-spacing: .02em;
}
.auth-illustration { width: 100%; height: auto; margin: 8px 0; flex: 1; min-height: 0; }
.auth-panel-copy h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.auth-panel-copy p { margin: 0; color: rgba(255,255,255,.82); font-size: 13.5px; line-height: 1.6; max-width: 40ch; }

.auth-form-side { flex: 1 1 54%; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form-wrap { width: 100%; max-width: 340px; }
.auth-form-wrap h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.auth-sub { margin: 0 0 22px; color: var(--ink-3); font-size: 13.5px; }

.auth-error, .auth-status {
    border-radius: 8px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 16px;
}
.auth-error { background: var(--bad-soft); color: var(--bad); }
.auth-status { background: var(--good-soft); color: var(--good); }

.auth-form-wrap label {
    display: block; font-size: 12px; font-weight: 700; color: var(--ink-2);
    margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em;
}
.auth-form-wrap label:first-of-type { margin-top: 0; }
.auth-form-wrap input[type="email"],
.auth-form-wrap input[type="password"],
.auth-form-wrap input[type="text"] {
    width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px;
    font-size: 14px; color: var(--ink); background: var(--surface);
}
.auth-form-wrap input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,92,86,.12); }

.auth-password-field { position: relative; }
.auth-password-field input { padding-right: 42px; }
.auth-toggle-pw {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 4px;
    display: flex;
}
.auth-toggle-pw:hover { color: var(--ink); }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 22px; }
.auth-remember { display: flex !important; align-items: center; gap: 7px; font-size: 12.5px !important; font-weight: 500 !important; text-transform: none !important; color: var(--ink-2) !important; margin: 0 !important; }
.auth-remember input { width: 14px; height: 14px; }
.auth-row a { font-size: 12.5px; color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-row a:hover { text-decoration: underline; }

.auth-submit {
    width: 100%; background: var(--brand); color: #fff; border: 0; border-radius: 9px;
    padding: 12px; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.auth-submit:hover { background: var(--brand-ink); }

.auth-back { display: inline-block; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); text-decoration: none; }
.auth-back:hover { color: var(--ink-2); }

@media (max-width: 820px) {
    .auth-shell { flex-direction: column; max-width: 420px; min-height: 0; }
    .auth-panel { padding: 26px; }
    .auth-illustration { display: none; }
    .auth-panel-copy p { max-width: none; }
    .auth-form-side { padding: 28px; }
}
