:root {
    --bg: #f8fafc;
    --ink: #0f172a;
    --muted: #475569;
    --accent: #0f766e;
    --hero: #ef4444;
    font-family: 'Public Sans', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--ink);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-form {
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.auth-form .logo {
    height: 56px;
    width: auto;
    margin-bottom: 18px;
}

.auth-form h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.auth-form .lead {
    margin: 0 0 18px;
    color: var(--muted);
}

.auth-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 600;
}

.auth-form input, .auth-form textarea, .auth-form select {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
}

.auth-form .actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
}

.auth-form .muted {
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0 0;
}

.back {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-hero {
    background: var(--accent);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-hero .card {
    background: #fff;
    color: #0f172a;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 18px 32px rgba(0,0,0,0.15);
    max-width: 520px;
    width: 100%;
}

.auth-hero .card h3 {
    margin: 0 0 4px;
}

.auth-hero .card p {
    margin: 0;
    color: #475569;
}

.auth-hero .headline {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    width: 100%;
    padding: 0 16px;
}

.tnc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 16px;
}

.tnc-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    padding: 18px;
    box-shadow: 0 18px 32px rgba(0,0,0,0.2);
}

.tnc-tabs {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.tnc-tab {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 700;
}

.tnc-tab.active {
    border-color: var(--accent);
    color: var(--accent);
    background: #e6fffa;
}

.tnc-body {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px 6px;
    color: #1f2937;
}

.tnc-body.hidden {
    display: none;
}

.tnc-body ol {
    padding-left: 20px;
    margin: 0;
}

.tnc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .tnc-body {
        max-height: 50vh;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        place-items: center;
        padding: 24px 0 40px;
    }
    .auth-hero {
        display: none;
    }
    .auth-form {
        padding: 32px 20px 48px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 18px 36px rgba(0,0,0,0.08);
        text-align: center;
    }
    .auth-form .actions {
        justify-content: center;
    }
    .auth-form .back {
        align-self: flex-start;
        text-align: left;
        margin-left: 4px;
    }
}
