:root {
    --green-900: #18352b;
    --green-700: #2c4e42;
    --green-600: #3c6255;
    --green-100: #e7efe8;
    --cream: #f5f1e8;
    --paper: #fffdf8;
    --muted: #6f7d75;
    --border: rgba(44, 78, 66, 0.14);
    --danger: #b85d4f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(80, 122, 102, 0.18), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(207, 184, 139, 0.18), transparent 28rem),
        var(--cream);
    color: var(--green-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-shell {
    width: min(100% - 32px, 760px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 48px 0;
}

.hero-card {
    width: 100%;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--border);
    border-radius: 32px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 24px 70px rgba(31, 63, 51, 0.12);
    backdrop-filter: blur(14px);
    text-align: center;
}

.logo-wrap {
    display: inline-grid;
    place-items: center;
    width: 98px;
    height: 98px;
    margin-bottom: 22px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 14px 32px rgba(31, 63, 51, 0.1);
}

.logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    max-width: 620px;
    margin: 0 auto 18px;
    color: var(--green-900);
    font-size: clamp(2.2rem, 7vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.lead {
    max-width: 560px;
    margin: 0 auto 24px;
    color: #455e54;
    font-size: 1.08rem;
    line-height: 1.75;
}

.explainer-card {
    max-width: 560px;
    margin: 0 auto 30px;
    padding: 18px 20px;
    border: 1px solid rgba(44, 78, 66, 0.12);
    border-radius: 22px;
    background: rgba(231, 239, 232, 0.58);
    text-align: left;
}

.explainer-card p {
    margin: 0 0 12px;
    color: var(--green-900);
    font-size: 0.98rem;
    line-height: 1.6;
}

.role-explainer {
    display: grid;
    gap: 8px;
}

.role-explainer span {
    color: #4b6258;
    font-size: 0.94rem;
    line-height: 1.5;
}

.role-explainer strong {
    color: var(--green-900);
}

.signup-form {
    max-width: 520px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
}

label {
    display: block;
    margin: 0 0 8px;
    color: var(--green-900);
    font-size: 0.92rem;
    font-weight: 750;
}

label span {
    color: var(--muted);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    margin: 0 0 18px;
    padding: 14px 15px;
    border: 1px solid rgba(44, 78, 66, 0.18);
    border-radius: 16px;
    background: var(--paper);
    color: var(--green-900);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(60, 98, 85, 0.58);
    box-shadow: 0 0 0 4px rgba(60, 98, 85, 0.12);
    background: #ffffff;
}

textarea {
    resize: vertical;
}

button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--green-700);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 14px 28px rgba(44, 78, 66, 0.22);
}

button:hover {
    background: var(--green-900);
    transform: translateY(-1px);
}

.microcopy {
    max-width: 480px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.status {
    display: none;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.status:not(:empty) {
    display: block;
}

.success {
    background: var(--green-100);
    color: var(--green-900);
}

.error {
    background: #f8e9e5;
    color: var(--danger);
}

.admin-shell {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 56px 0;
}

.admin-shell h1 {
    margin: 18px 0 8px;
    font-size: 2.4rem;
    letter-spacing: -0.04em;
}

.muted,
.back-link {
    color: var(--muted);
}

.back-link {
    text-decoration: none;
    font-weight: 700;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.admin-toolbar .muted {
    margin: 0;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--green-700);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.admin-button.secondary {
    background: rgba(44, 78, 66, 0.1);
    color: var(--green-900);
}

.table-card {
    overflow-x: auto;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 16px 44px rgba(31, 63, 51, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--green-900);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    color: #425b51;
}

@media (max-width: 640px) {
    .landing-shell {
        width: min(100% - 20px, 760px);
        padding: 20px 0;
    }

    .hero-card {
        border-radius: 24px;
    }

    .signup-form {
        padding: 18px;
    }

    .admin-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
