*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy-1: #0f1729;
    --navy-2: #1b2538;
    --green-bg: #006b3a;
    --green: #006837;
    --green-hover: #00562d;
    --green-link: #16a34a;
    --header-bg: #060b14;
    --text: #1f2937;
    --muted: #64748b;
    --border: #cbd5e1;
    --addon: #f1f5f9;
    --red: #b91c1c;
}

html, body { min-height: 100%; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 50%, var(--green-bg) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

/* ── CARD ── */
.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.auth-head {
    background: var(--header-bg);
    text-align: center;
    padding: 24px 20px 20px;
    border-bottom: 3px solid #059669;
}

.brand-row { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; text-decoration: none; }
.brand-row svg { width: 46px; height: 54px; }
.brand-word { text-align: left; line-height: 1.05; }
.brand-word strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #b8bcc4;
    text-transform: uppercase;
}
.brand-word span { font-size: 15px; font-weight: 500; color: #15803d; letter-spacing: 0.5px; }

.auth-head h1 { color: #fff; font-size: 21px; font-weight: 700; line-height: 1.3; }
.auth-head p {
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-body { padding: 24px 24px 22px; }

.auth-title { text-align: center; font-size: 16px; font-weight: 700; color: var(--text); }
.auth-sub { text-align: center; font-size: 11.5px; color: var(--muted); margin: 3px 0 20px; line-height: 1.5; }

/* ── FIELDS ── */
.field { margin-bottom: 18px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }

.field label, .field-top label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
}
.field > label { margin-bottom: 6px; }
.req { color: var(--red); }

.ig { display: flex; align-items: stretch; }
.ig-addon {
    width: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--addon);
    border: 1px solid var(--border);
    color: #64748b;
    font-size: 14px;
}
.ig-addon.left { border-radius: 6px 0 0 6px; border-right: 0; }
.ig-addon.right { border-radius: 0 6px 6px 0; border-left: 0; cursor: pointer; }
button.ig-addon { font-family: inherit; }
button.ig-addon:hover { color: var(--green); }

.ig input, .ig select {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
.ig input:first-child, .ig select:first-child { border-radius: 6px; }
.ig .ig-addon.left + input, .ig .ig-addon.left + select { border-radius: 0 6px 6px 0; }
.ig .ig-addon.left + input:not(:last-child) { border-radius: 0; }
.ig input::placeholder { color: #94a3b8; }
.ig input:focus, .ig select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,104,55,0.15); position: relative; z-index: 1; }
.ig input:read-only { background: var(--addon); color: var(--muted); cursor: not-allowed; }

.ig select {
    cursor: pointer;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.ig select:disabled { background-color: var(--addon); color: #94a3b8; cursor: not-allowed; }

.hint { margin-top: 5px; font-size: 10.5px; color: var(--muted); display: flex; gap: 5px; align-items: center; }

.link-green { color: var(--green-link); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.link-green:hover { text-decoration: underline; }

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    padding-bottom: 6px;
    margin: 6px 0 14px;
    border-bottom: 1px solid #e2e8f0;
}

/* ── BUTTON ── */
.btn-green {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
    transition: background .15s;
}
.btn-green:hover { background: var(--green-hover); }
.btn-green:disabled { opacity: .6; cursor: not-allowed; }

.divider { border-top: 1px solid #e2e8f0; margin: 22px 0 14px; }
.foot-links { text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.9; }
.foot-links a { color: var(--green-link); font-weight: 700; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

.note {
    margin-top: 16px;
    font-size: 10.5px;
    line-height: 1.6;
    color: var(--muted);
    background: var(--addon);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 9px 11px;
    display: flex;
    gap: 8px;
}
.note i { color: var(--green); margin-top: 2px; }

/* ── PAGE FOOTER ── */
.page-foot {
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    gap: 8px 16px;
    flex-wrap: wrap;
}
.page-foot .status { color: var(--green-link); }

@media (max-width: 520px) {
    .page-main { padding: 24px 14px; }
    .auth-body { padding: 20px 16px; }
    .brand-word strong { font-size: 24px; }
    .auth-head h1 { font-size: 19px; }
    .page-foot { flex-direction: column; }
}
