*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green: #1a5c2e;
    --green-mid: #236b38;
    --green-light: #e8f4ec;
    --red: red;
    --red-light: #f7e8e8;
    --gold: yellow;
    --gold-light: #fdf6e0;
    --gold-dark: #b8880f;
    --ink: #111a14;
    --mid: #556359;
    --pale: #f9faf8;
    --white: #ffffff;
    --border: rgba(26, 92, 46, 0.15);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

body {
    font-family: var(--font-body);
    background: var(--pale);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--green) 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%);
}

header {
    background: gold;
    padding: 0 48px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--green);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-emblem {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(212, 160, 23, 0.1);
}

.header-text {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    line-height: 1.3;
}

.header-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--red);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header-signup {
    font-size: 13px;
    color: var(--red);
    text-decoration: none;
}

.header-signup span {
    color: var(--red);
    font-weight: 600;
}

.header-signup:hover span {
    color: red
}

main {
    flex: 1;
    display: flex;
}

/* LEFT PANEL */
.left-panel {
    width: 440px;
    min-width: 440px;
    background: linear-gradient(155deg, #057f2e 0%, #06741c 60%, #076b25 100%);
    padding: 60px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 55px solid rgba(26, 92, 46, 0.12);
}

.left-panel::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 35px solid rgba(212, 160, 23, 0.06);
}

.left-welcome {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.left-title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.left-title em {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.left-body {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 44px;
    position: relative;
    z-index: 1;
}

.status-card {
    background: rgba(176, 10, 10, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.status-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.green {
    background: #6fcf97;
    box-shadow: 0 0 6px rgba(111, 207, 151, 0.5);
}

.status-dot.gold {
    background: var(--gold);
}

.status-dot.red {
    background: red
}

.status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.left-bottom {
    position: relative;
    z-index: 1;
}

.left-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(26, 92, 46, 0.3);
    border: 1px solid rgba(26, 92, 46, 0.5);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 10px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6fcf97;
}

.left-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--green) 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%);
    margin-top: 22px;
    border-radius: 2px;
    opacity: 0.4;
}

/* FORM PANEL */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 72px;
}

.form-card {
    width: 100%;
    max-width: 420px;
}

.form-step-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-step-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--green);
}

.form-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.6;
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    display: block;
}

.forgot-link {
    font-size: 11px;
    color: var(--green);
    text-decoration: none;
    font-family: var(--font-mono);
}

.forgot-link:hover {
    text-decoration: underline;
}

input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26, 92, 46, 0.1);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
}

.remember-row label {
    font-size: 12px;
    color: var(--mid);
    font-weight: 400;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    margin-bottom: 16px;
}

.btn-submit:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 92, 46, 0.3);
}

.error-box {
    background: var(--red-light);
    border: 1.5px solid rgba(139, 26, 26, 0.2);
    border-radius: 7px;
    padding: 12px 14px;
    font-size: 12px;
    color: var(--red);
    margin-bottom: 18px;
    display: none;
    line-height: 1.55;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    font-size: 11px;
    color: var(--mid);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.signup-link {
    text-align: center;
    font-size: 13px;
    color: var(--mid);
}

.signup-link a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 11px;
    color: var(--mid);
    font-family: var(--font-mono);
    margin-top: 24px;
}

.secure-note span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.secure-note span.g {
    background: var(--green);
}

.secure-note span.y {
    background: var(--gold);
}

.secure-note span.r {
    background: var(--red);
}

footer {
    background: var(--ink);
    padding: 16px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.bottom-stripe {
    height: 3px;
    background: linear-gradient(90deg, var(--green) 33.3%, var(--gold) 33.3% 66.6%, var(--red) 66.6%);
}

@media (max-width: 900px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 36px 24px;
    }

    header {
        padding: 0 24px;
    }
}

.header-text {
    font-size: 22px;
}