:root {
    --navy: #0b1728;
    --navy-secondary: #14243a;
    --teal: #0f8f83;
    --teal-deep: #08736a;
    --teal-light: #e0f4f1;
    --background: #f5f8fa;
    --surface: #ffffff;
    --border: #dde5ea;
    --text: #14212f;
    --muted: #657484;
    --error: #d14343;
    --error-bg: #fdecec;
    --info-bg: #eaf1ff;
    --info: #2563eb;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
}

.auth-brand {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 80%, rgba(15,143,131,.3), transparent 34%),
        radial-gradient(circle at 88% 15%, rgba(37,99,235,.12), transparent 28%),
        var(--navy);
}

.auth-brand::before,
.auth-brand::after {
    position: absolute;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
    content: "";
}

.auth-brand::before { width: 420px; height: 420px; right: -245px; top: 15%; }
.auth-brand::after { width: 280px; height: 280px; right: -170px; top: 25%; }

.brand-content {
    z-index: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 54px clamp(40px, 6vw, 92px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.02em;
    text-decoration: none;
}

.brand-symbol {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--teal);
}

.brand-symbol svg { width: 25px; fill: none; stroke: white; stroke-width: 2; }
.brand-symbol .symbol-line { stroke-width: 1.8; stroke-linecap: round; }

.brand-message { max-width: 560px; margin: auto 0; }
.eyebrow { color: #73d2c8; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-message h1 { margin: 20px 0 22px; font-size: clamp(36px, 4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.brand-message p { max-width: 510px; margin: 0; color: #b8c4d1; font-size: 17px; line-height: 1.75; }

.brand-status { display: flex; align-items: center; gap: 9px; color: #b8c4d1; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #36c995; box-shadow: 0 0 0 4px rgba(54,201,149,.12); }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px 24px; }
.auth-card { width: min(100%, 430px); }
.form-header { margin-bottom: 32px; }
.form-header h2 { margin: 10px 0; font-size: 29px; line-height: 1.2; letter-spacing: -.035em; }
.form-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.mobile-brand { display: none; color: var(--teal); font-size: 14px; font-weight: 700; }
.setup-badge { display: inline-flex; padding: 6px 9px; border-radius: 7px; color: var(--teal-deep); background: var(--teal-light); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.auth-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; }
.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #9aa7b3; }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,143,131,.12); }
.field-error { color: var(--error); font-size: 12px; }

.checkbox { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--teal); }

.button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .05s;
}
.button:active { transform: translateY(1px); }
.button-primary { margin-top: 4px; background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-deep); }
.button-google { border-color: var(--border); background: #fff; color: var(--text); }
.button-google:hover { border-color: #c7d2da; background: #fafcfd; }
.button-google svg { width: 19px; height: 19px; }

.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: #8a98a6; font-size: 11px; text-transform: uppercase; }
.divider::before, .divider::after { height: 1px; flex: 1; background: var(--border); content: ""; }
.alert { margin-bottom: 22px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.alert-error { color: var(--error); background: var(--error-bg); }
.alert-info { color: var(--info); background: var(--info-bg); }
.form-link { margin: 25px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.form-link a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.form-link a:hover { text-decoration: underline; }
.auth-footer { margin: auto 0 0; padding-top: 44px; color: #8a98a6; font-size: 11px; }
.auth-footer a { color: #657484; font-weight: 600; text-decoration: none; }
.auth-footer a:hover { color: #08736a; text-decoration: underline; }

.dashboard { min-height: 100vh; padding: 32px; background: var(--background); }
.dashboard-bar { display: flex; max-width: 1100px; margin: auto; align-items: center; justify-content: space-between; }
.dashboard-card { max-width: 1100px; margin: 48px auto; padding: 48px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.dashboard-card h1 { margin: 12px 0; }
.dashboard-card p { color: var(--muted); }
.dashboard-card a { color: var(--teal-deep); font-weight: 600; }
.logout { width: auto; min-height: 40px; padding: 0 18px; }

@media (max-width: 850px) {
    .auth-shell { display: block; }
    .auth-brand { display: none; }
    .auth-panel { min-height: 100vh; padding: 44px 22px 22px; }
    .mobile-brand { display: block; margin-bottom: 26px; }
    .auth-footer { margin-top: 40px; }
    .dashboard { padding: 22px; }
    .dashboard-card { margin-top: 32px; padding: 28px; }
}

@media (max-width: 480px) {
    .auth-panel { justify-content: flex-start; }
    .form-header h2 { font-size: 26px; }
}
