:root {
    color-scheme: light;
    --maroon: #8b2635;
    --maroon-dark: #631827;
    --ink: #171719;
    --muted: #66636a;
    --line: #ded9d2;
    --paper: #fffefd;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: #f4f0eb;
    font-family: "Inter", sans-serif;
}

button, input, select { font: inherit; }

.register-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
}

.register-intro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px clamp(32px, 5vw, 84px);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(20, 19, 22, 0.98), rgba(42, 22, 29, 0.97)),
        url("../assets/images/arise-edge-demo-hero.png") center / cover;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
}

.brand strong, .brand small { display: block; }
.brand strong { font: 700 23px "Space Grotesk", sans-serif; }
.brand small { margin-top: 3px; color: #c8c1c4; font-size: 10px; font-weight: 700; }

.intro-copy {
    width: min(570px, 100%);
    margin: auto 0;
    padding: 72px 0;
}

.eyebrow {
    color: #e6a8b4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.intro-copy h1 {
    margin: 18px 0;
    font: 700 48px/1.08 "Space Grotesk", sans-serif;
    letter-spacing: 0;
}

.intro-copy > p { color: #d3cdd0; font-size: 17px; line-height: 1.7; }
.intro-copy ul { margin: 36px 0 0; padding: 0; list-style: none; }
.intro-copy li { display: flex; align-items: center; gap: 15px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: #eee9eb; }
.intro-copy li span { color: #e6a8b4; font-size: 12px; font-weight: 700; }
.intro-foot { margin: 0; color: #a9a2a5; font-size: 12px; line-height: 1.6; }

.register-panel {
    display: grid;
    place-items: center;
    padding: 48px clamp(24px, 6vw, 104px);
    background: var(--paper);
}

.form-wrap { width: min(580px, 100%); }
.back-link { display: inline-block; margin-bottom: 36px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back-link:hover { color: var(--maroon); }

.plan-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid #ead6da;
    border-left: 3px solid var(--maroon);
    border-radius: 6px;
    background: #fff8f9;
    color: var(--maroon-dark);
    font-size: 13px;
}

.form-wrap h2 { margin: 0 0 10px; font: 700 34px "Space Grotesk", sans-serif; letter-spacing: 0; }
.form-lead { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
form { display: grid; gap: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: #3d3a40; font-size: 13px; font-weight: 600; }

input, select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

input:focus, select:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(139,38,53,.1); }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 68px; }
.password-control button { position: absolute; inset: 7px 7px 7px auto; border: 0; color: var(--maroon); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }

.consent { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 400; line-height: 1.5; }
.consent input { flex: 0 0 auto; width: 17px; min-height: 17px; margin: 2px 0 0; accent-color: var(--maroon); }

.submit-button {
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--maroon);
    font-weight: 700;
    cursor: pointer;
}

.submit-button:hover { background: var(--maroon-dark); }
.submit-button:disabled { opacity: .65; cursor: wait; }
.form-status { min-height: 21px; color: #b42318; font-size: 13px; line-height: 1.5; }
.form-status.success { color: #157347; }
.login-link { margin: 20px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.login-link a { color: var(--maroon); font-weight: 700; }

@media (max-width: 900px) {
    .register-shell { grid-template-columns: 1fr; }
    .register-intro { min-height: auto; padding: 28px 24px 34px; }
    .intro-copy { padding: 54px 0 32px; }
    .intro-copy h1 { font-size: 38px; }
    .intro-copy ul, .intro-foot { display: none; }
    .register-panel { padding: 42px 24px 64px; }
    .back-link { margin-bottom: 28px; }
}

@media (max-width: 520px) {
    .intro-copy h1 { font-size: 32px; }
    .field-row { grid-template-columns: 1fr; }
    .form-wrap h2 { font-size: 29px; }
    .plan-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
}
