:root {
    --navy: #17324d;
    --blue: #2e6f8e;
    --blue-dark: #23556e;
    --blue-soft: #edf6fa;
    --green: #177245;
    --green-soft: #e9f7ef;
    --orange: #9a5a00;
    --orange-soft: #fff4df;
    --red: #a12626;
    --red-soft: #fff0f0;
    --text: #203142;
    --muted: #687786;
    --border: #dbe4ea;
    --surface: #ffffff;
    --background: #f3f6f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.auth-shell-wide {
    padding-block: 48px;
}

.auth-card {
    width: min(820px, 100%);
    padding: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(23, 50, 77, 0.1);
}

.auth-card-compact {
    width: min(470px, 100%);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--blue), var(--navy));
    color: #ffffff;
    font-size: 27px;
    font-weight: 700;
}

.brand-row .brand-mark {
    margin-bottom: 0;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    color: var(--navy);
    line-height: 1.18;
}

h1 {
    font-size: clamp(27px, 4vw, 38px);
}

h2 {
    font-size: 24px;
}

.intro {
    margin: 12px 0 26px;
    color: var(--muted);
    line-height: 1.55;
}

.alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.45;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alert-error {
    background: var(--red-soft);
    color: var(--red);
}

.alert-warning {
    background: var(--orange-soft);
    color: var(--orange);
}

.alert-success {
    background: var(--green-soft);
    color: var(--green);
}

fieldset {
    min-width: 0;
    margin: 0 0 26px;
    padding: 0;
    border: 0;
}

legend {
    width: 100%;
    margin-bottom: 15px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.form-grid .field {
    margin-bottom: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.field > span {
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

.field input,
.readonly-field div {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd8e0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    outline: none;
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(46, 111, 142, 0.12);
}

.readonly-field div {
    background: #f7f9fa;
    color: var(--muted);
}

.primary-button,
.secondary-button {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.primary-button {
    width: 100%;
    border: 0;
    background: var(--blue);
    color: #ffffff;
}

.primary-button:hover {
    background: var(--blue-dark);
}

.secondary-button {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--navy);
}

.secondary-link {
    display: block;
    margin-top: 20px;
    color: var(--blue);
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.dashboard-shell {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: 42px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 26px;
}

.dashboard-location {
    margin: 8px 0 0;
    color: var(--muted);
}

.verification-card {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 28px;
    border: 1px solid #cfe5d8;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(23, 50, 77, 0.07);
}

.verification-card p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
}

.verification-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 24px;
    font-weight: 800;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.placeholder-grid article {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.placeholder-grid span,
.placeholder-grid strong {
    display: block;
}

.placeholder-grid span {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.placeholder-grid strong {
    color: var(--navy);
}

.milestone-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 700px) {
    .auth-card {
        padding: 26px 20px;
    }

    .form-grid,
    .placeholder-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .dashboard-header,
    .verification-card {
        align-items: flex-start;
    }
}
