/* Shared styles for the sign-in and registration pages. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --hero-bg:      #0b1a2e;
    --hero-text:    #ffffff;
    --hero-muted:   rgba(255,255,255,.78);
    --card-bg:      #ffffff;
    --text:         #111111;
    --text-muted:   #5f6168;
    --text-faint:   #9a9ca3;
    --border:       #e4e4e7;
    --border-focus: #111111;
    --btn-bg:       #111111;
    --btn-hover:    #2a2a2a;
    --radius-card:  16px;
    --radius-input: 10px;
}

html, body {
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--hero-bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ── Full-bleed hero artwork behind everything ── */
.hero-art {
    position: fixed; inset: 0; z-index: -1; /* behind .page content, inside its stacking context */
    width: 100%; height: 100%;
    display: block;
}

/* ── Layout ── */
.page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex;
    padding: 12px;
}

/* ── Left: brand + headline over the artwork ── */
.hero {
    flex: 1 1 auto;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 36px 44px 48px;
    color: var(--hero-text);
    min-width: 0;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--hero-text); text-decoration: none;
    font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em;
}
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: #fff; color: var(--hero-bg);
}
.brand-mark svg { width: 17px; height: 17px; fill: currentColor; }

.hero-copy { max-width: 520px; }
.hero-copy h1 {
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    font-weight: 600; line-height: 1.18; letter-spacing: -.025em;
}
.hero-copy p {
    margin-top: 14px; max-width: 420px;
    font-size: .9rem; line-height: 1.6; color: var(--hero-muted);
}

/* ── Right: white card ── */
.card {
    flex: 0 0 auto;
    width: min(560px, 46%);
    background: var(--card-bg);
    border-radius: var(--radius-card);
    display: flex; align-items: center; justify-content: center;
    padding: 48px 40px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    animation: card-in .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes card-in {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.card-inner { width: 100%; max-width: 400px; }
.card--wide .card-inner { max-width: 460px; }

.form-heading h2 {
    font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
}
.form-heading p {
    margin-top: 8px; font-size: .9rem; color: var(--text-muted);
}

form { margin-top: 32px; }

/* ── Fields ── */
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { margin-bottom: 20px; min-width: 0; }
.field label {
    display: block; margin-bottom: 8px;
    font-size: .82rem; font-weight: 600; color: var(--text);
}
.field-wrap { position: relative; display: flex; align-items: center; }

input[type="email"],
input[type="password"],
input[type="text"],
select {
    width: 100%; height: 48px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    font-family: inherit; font-size: .9rem;
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field-wrap input { padding-right: 46px; }
input::placeholder { color: var(--text-faint); }
input:focus, select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}

select {
    appearance: none; -webkit-appearance: none;
    padding-right: 40px; cursor: pointer;
}
select:invalid { color: var(--text-faint); }
select option { color: var(--text); }
.select-arrow {
    position: absolute; right: 14px;
    display: flex; pointer-events: none; color: var(--text-faint);
}
.select-arrow svg { width: 16px; height: 16px; }

/* Eye toggle */
.eye-toggle {
    position: absolute; right: 10px;
    background: none; border: none; cursor: pointer;
    color: var(--text-faint); display: flex; align-items: center;
    padding: 6px; border-radius: 6px;
    transition: color .15s;
}
.eye-toggle:hover, .eye-toggle:focus-visible { color: var(--text); }
.eye-toggle svg { width: 18px; height: 18px; }

.field-row {
    display: flex; justify-content: flex-end;
    margin-top: -6px;
}
.field-row a {
    font-size: .82rem; color: var(--text-muted); text-decoration: none;
    transition: color .15s;
}
.field-row a:hover { color: var(--text); text-decoration: underline; }

/* ── Checkbox ── */
.check {
    display: flex; align-items: center; gap: 10px;
    margin-top: 2px;
    font-size: .85rem; color: var(--text-muted);
    cursor: pointer; user-select: none;
}
.check input {
    width: 18px; height: 18px; flex: 0 0 auto;
    accent-color: var(--btn-bg); cursor: pointer;
}
.check a { color: var(--text); font-weight: 600; text-decoration: none; }
.check a:hover { text-decoration: underline; }

/* ── Submit button ── */
.btn-submit {
    width: 100%; height: 48px; margin-top: 28px;
    border: none; border-radius: 999px;
    background: var(--btn-bg);
    color: #fff; font-family: inherit; font-size: .9rem; font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.btn-submit:hover { background: var(--btn-hover); }
.btn-submit:active { transform: scale(.99); }
.btn-submit:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ── Footer link ── */
.form-footer {
    text-align: center; margin-top: 28px;
    font-size: .85rem; color: var(--text-muted);
}
.form-footer a { color: var(--text); text-decoration: none; font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .page { flex-direction: column; padding: 16px; }
    .hero { flex: 0 0 auto; padding: 12px 4px 24px; }
    .hero-copy { display: none; }
    .card { width: 100%; padding: 36px 24px; }
}
@media (max-width: 480px) {
    .form-heading h2 { font-size: 1.65rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
