@import url('google-fonts.css');

:root {
    --bg: #eef3f8;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --line: #dbe4ee;
    --brand: #10b981;
    --brand-strong: #059669;
    --danger: #dc2626;
    --success: #059669;
    --shadow: 0 18px 46px rgba(15, 23, 42, 0.10);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 6vw, 58px);
    background: var(--surface);
    border-right: 1px solid var(--line);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 46px;
    text-decoration: none;
}

.auth-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #052e1d;
    font-weight: 950;
}

.auth-brand strong,
.auth-brand small {
    display: block;
}

.auth-brand strong {
    font-size: 1rem;
}

.auth-brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-heading p,
.auth-kicker {
    margin: 0 0 8px;
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    line-height: 1.08;
}

.auth-heading span,
.auth-aside p {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.55;
}

form {
    display: grid;
    gap: 16px;
}

label {
    display: block;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 42px;
    margin-top: 7px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    outline: 0;
}

input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

button {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: #052e1d;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
}

button:hover {
    background: var(--brand-strong);
    color: #fff;
}

button.secondary {
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
}

button.secondary:hover {
    border-color: var(--brand);
    background: #ecfdf5;
    color: var(--brand-strong);
}

.auth-secondary-form {
    margin-top: 10px;
}

.auth-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--brand-strong);
}

.auth-outline-button {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

.auth-outline-button:hover {
    border-color: var(--brand);
    background: #ecfdf5;
    color: var(--brand-strong);
}

.alert {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 0.86rem;
    font-weight: 760;
}

.alert.danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.auth-aside {
    display: grid;
    align-items: end;
    padding: clamp(28px, 6vw, 70px);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.88), rgba(20, 184, 166, 0.78)),
        #0f172a;
    color: #fff;
}

.auth-aside div {
    max-width: 620px;
}

.auth-aside h2 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
}

.auth-aside p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 820px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        min-height: 100vh;
        border-right: 0;
    }

    .auth-aside {
        display: none;
    }
}
