/* ── Reset / base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #23272E;
}

/* ── Two-column layout ───────────────────────────── */
.su-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── LEFT — Form panel ───────────────────────────── */
.su-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
}

.su-logo {
    position: absolute;
    top: 36px;
    left: 48px;
}
.su-logo img { height: 32px; width: auto; }

.su-form-inner {
    max-width: 400px;
    width: 100%;
}

.su-heading {
    font-size: 26px;
    font-weight: 700;
    color: #23272E;
    margin-bottom: 6px;
    line-height: 1.25;
}

.su-sub {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 32px;
}

/* ── OAuth button ────────────────────────────────── */
.su-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #23272E;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    text-decoration: none;
    margin-bottom: 12px;
    font-family: inherit;
}
.su-oauth-btn:hover {
    border-color: #FD5812;
    box-shadow: 0 0 0 3px rgba(253,88,18,.08);
    color: #23272E;
}
.su-oauth-btn svg { flex-shrink: 0; }

/* ── Divider ─────────────────────────────────────── */
.su-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.su-divider::before,
.su-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

/* ── Form fields ─────────────────────────────────── */
.su-field {
    position: relative;
    margin-bottom: 14px;
}
.su-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}
.su-field input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    color: #23272E;
    background: #fafafa;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}
.su-field input:focus {
    border-color: #FD5812;
    box-shadow: 0 0 0 3px rgba(253,88,18,.1);
    background: #fff;
}
.su-field input.su-invalid { border-color: #FD5812; }

.su-field-hint {
    font-size: 11.5px;
    color: #FD5812;
    margin-top: 4px;
    display: none;
}
.su-field-hint.visible { display: block; }

/* ── Server-side error banner ────────────────────── */
.su-server-error {
    background: #FFF1EE;
    border: 1px solid #FD5812;
    color: #C0390A;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.su-server-error a { color: #C0390A; font-weight: 600; }

/* ── Password toggle eye ─────────────────────────── */
.su-field-pw { position: relative; }
.su-field-pw input { padding-right: 44px; }
.su-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: color .2s;
}
.su-pw-toggle:hover { color: #FD5812; }

/* Password row — hidden by default (signup only) */
#pw-row { display: none; }
#pw-row.visible { display: block; }

/* ── Terms checkbox (signup only) ────────────────── */
.su-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 22px;
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
}
.su-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: #FD5812;
    margin-top: 2px;
    cursor: pointer;
}
.su-terms a { color: #FD5812; text-decoration: none; font-weight: 500; }
.su-terms a:hover { text-decoration: underline; }
.su-terms-hint { margin: -6px 0 14px; }

/* ── Primary CTA ─────────────────────────────────── */
.su-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    background: #FD5812;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    font-family: inherit;
    text-decoration: none;
    margin: 22px 0 20px;
}
.su-cta:hover {
    background: #e04a08;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(253,88,18,.25);
    color: #fff;
}

/* ── Login / register link ───────────────────────── */
.su-login-link {
    text-align: center;
    font-size: 13.5px;
    color: #64748B;
}
.su-login-link a { color: #FD5812; font-weight: 600; text-decoration: none; }
.su-login-link a:hover { text-decoration: underline; }

/* ── RIGHT — Reassurance panel ───────────────────── */
.su-right {
    background: #fff7f3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 72px;
    position: relative;
    overflow: hidden;
    border-left: 1px solid #f0e8e3;
}
.su-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #fff 0%, #fff7f3 40%, #fef0e8 100%);
    pointer-events: none;
}

.su-back-link {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e8ddd7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 17px;
    text-decoration: none;
    transition: border-color .2s, color .2s, box-shadow .2s;
    z-index: 2;
}
.su-back-link:hover {
    border-color: #FD5812;
    color: #FD5812;
    box-shadow: 0 0 0 3px rgba(253,88,18,.1);
}

.su-right-inner { position: relative; z-index: 1; }

.su-right-headline {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.4;
    color: #23272E;
}
.su-right-headline span { font-style: italic; color: #EE3E08; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1100px) {
    .su-right { padding: 80px 48px; }
}
@media (max-width: 991px) {
    .su-wrap { grid-template-columns: 1fr; }
    .su-right { display: none; }
    .su-left { padding: 40px 32px; }
    .su-logo { left: 32px; top: 28px; }
}
@media (max-width: 480px) {
    .su-left { padding: 80px 24px 40px; }
    .su-logo { left: 24px; }
}
