:root {
    color-scheme: light;
    font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    font-synthesis: none;
    color: #242031;
    background: #f7f4f6;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #eaa3ac; outline-offset: 3px; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(430px, 49%) minmax(0, 1fr);
    background: #fffdfd;
}
.story-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 760px;
    padding: 44px clamp(38px, 5vw, 86px) 32px;
    color: #fff;
    background:
        radial-gradient(circle at 70% 81%, rgba(251, 121, 144, .22), transparent 35%),
        radial-gradient(circle at 14% 14%, rgba(146, 103, 223, .25), transparent 42%),
        linear-gradient(145deg, #302544 0%, #211b33 56%, #1a192c 100%);
}
.story-panel::before {
    content: "";
    position: absolute;
    width: 470px; height: 470px;
    border-radius: 50%;
    right: -260px; top: -240px;
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 0 0 82px rgba(255,255,255,.018), 0 0 0 162px rgba(255,255,255,.013);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: max-content;
    font-size: 25px;
    letter-spacing: -1.4px;
    font-weight: 800;
    line-height: 1;
    color: #272134;
    position: relative;
    z-index: 2;
}
.brand-light { color: #fff; }
.brand-accent { color: #f48e9f; }
.brand-symbol {
    position: relative;
    display: inline-block;
    width: 31px; height: 29px;
}
.brand-symbol i {
    position: absolute;
    width: 21px; height: 20px;
    border-radius: 8px 8px 8px 3px;
    background: #f48e9f;
    transform: rotate(-17deg);
    left: 1px; top: 2px;
}
.brand-symbol i:last-child {
    background: #bb91e3;
    left: 10px; top: 8px;
    transform: rotate(17deg);
    opacity: .94;
    mix-blend-mode: screen;
}
.story-content { position: relative; z-index: 1; margin: auto 0; padding-top: 62px; }
.eyebrow, .form-topline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #9b6196;
}
.eyebrow.light { color: #efbdcf; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #f797a9; box-shadow: 0 0 0 5px rgba(247,151,169,.13); }
.story-content h1 {
    margin: 23px 0 20px;
    font-size: clamp(48px, 5.2vw, 78px);
    line-height: 1.07;
    letter-spacing: -4px;
    font-weight: 750;
}
.story-content h1 em { font-family: Georgia, serif; color: #f6a2ae; font-weight: 400; }
.story-content > p { max-width: 460px; color: #d0cbd8; font-size: 17px; line-height: 1.75; margin: 0; }
.story-art {
    position: relative;
    height: min(37vh, 310px);
    min-height: 260px;
    margin: 32px -20px 0;
    overflow: hidden;
}
.art-orbit {
    position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
    width: 500px; height: 500px; left: 50%; top: 52%; transform: translate(-50%, -50%);
}
.orbit-two { width: 330px; height: 330px; }
.art-pulse {
    position: absolute; left: 50%; top: 51%; transform: translate(-50%,-50%);
    width: 165px; height: 165px; border-radius: 50%;
    background: radial-gradient(circle, rgba(248,150,173,.45), rgba(198,123,194,.12) 50%, transparent 72%);
    filter: blur(5px);
}
.art-pin {
    position: absolute; left: 50%; top: 51%; transform: translate(-50%, -50%) rotate(-45deg);
    width: 59px; height: 59px; border-radius: 50% 50% 50% 7px;
    background: linear-gradient(145deg, #f9b0ba, #ef738f);
    box-shadow: 0 14px 35px rgba(247,111,146,.33);
}
.pin-center { display: block; width: 20px; height: 20px; border: 5px solid white; border-radius: 50%; margin: 18px; }
.art-person {
    position: absolute;
    width: 64px; height: 64px; border: 4px solid rgba(255,255,255,.8); border-radius: 50%;
    box-shadow: 0 16px 30px rgba(8,7,17,.28);
}
.person-one { left: 16%; top: 24%; background: linear-gradient(145deg, #ffd0a8, #bb72a3); }
.person-two { right: 16%; top: 10%; background: linear-gradient(145deg, #a7ced3, #6f82bd); }
.art-person::before {
    content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.76); left: 19px; top: 9px;
}
.art-person::after {
    content: ""; position: absolute; width: 35px; height: 20px; border-radius: 50% 50% 9px 9px; background: rgba(255,255,255,.66); left: 10px; bottom: 6px;
}
.art-person span {
    position: absolute; z-index: 1; left: 38px; top: 52px; white-space: nowrap;
    padding: 9px 14px; color: #40354b; font-size: 12px; font-weight: 700;
    background: #fff; border-radius: 12px 12px 12px 3px; box-shadow: 0 8px 20px rgba(16,9,31,.18);
}
.person-two span { left: auto; right: 40px; top: 56px; border-radius: 12px 12px 3px 12px; }
.art-caption {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 11px;
    min-width: 218px; padding: 12px 17px;
    color: #d7d0dc; background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.16); border-radius: 15px;
    backdrop-filter: blur(8px); font-size: 11px; line-height: 1.45;
}
.art-caption strong { color: #fff; font-size: 12px; font-weight: 700; }
.caption-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; flex: none; background: #f39aae; color: #34223e; font-size: 18px; }
.story-footer { position: relative; z-index: 1; color: #9f98ae; font-size: 12px; letter-spacing: .2px; }
.tiny-spark { color: #f29db0; font-size: 20px; vertical-align: -2px; padding-right: 7px; }

.form-panel { display: flex; flex-direction: column; min-width: 0; padding: 32px clamp(30px, 5vw, 84px) 25px; }
.mobile-brand { display: none; }
.form-wrap { width: min(100%, 460px); margin: auto; padding: 45px 0; }
.form-topline { color: #a974a3; }
.topline-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: #fbe5ea; color: #de718c; font-size: 16px; letter-spacing: 0; }
.form-wrap h2 { margin: 16px 0 10px; font-size: clamp(34px, 3.5vw, 49px); line-height: 1.13; letter-spacing: -2.6px; color: #242032; }
.form-wrap h2 span { color: #e7889d; }
.form-intro { margin: 0 0 31px; color: #898494; font-size: 15px; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label { color: #302b3e; font-size: 13px; font-weight: 750; margin-bottom: 9px; }
.field input, .field select {
    width: 100%; height: 52px; padding: 0 16px;
    border: 1px solid #e8e3ea; border-radius: 11px;
    color: #302a3c; background: #fff;
    outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #b4afbb; }
.field input:hover, .field select:hover { border-color: #d0bfd3; }
.field input:focus, .field select:focus { border-color: #d482a2; box-shadow: 0 0 0 4px rgba(229,137,167,.13); }
.field input.input-validation-error, .field select.input-validation-error { border-color: #d56782; background: #fffafb; }
.password-field { position: relative; }
.field .password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 7px; color: #a44d72; background: transparent; }
.password-toggle svg { width: 21px; height: 21px; }
.password-toggle[aria-pressed="false"] .password-eye-slash { display: none; }
.password-toggle:hover { background: #fff0f5; }
.password-toggle:focus-visible { outline: 2px solid #d482a2; outline-offset: 1px; }
.field small { color: #aaa4b0; font-size: 11px; margin-top: 6px; }
.field-error { display: block; margin-top: 6px; font-size: 12px; color: #c7486c; }
.field-error:empty { display: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; align-items: center; gap: 9px; width: max-content; color: #666172; font-size: 13px; margin: -2px 0 4px; cursor: pointer; }
.check-row input { accent-color: #db7d99; width: 16px; height: 16px; margin: 0; }
.primary-button, .secondary-button {
    width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center;
    gap: 12px; border-radius: 11px; font-size: 14px; font-weight: 750;
    transition: transform .18s, box-shadow .18s, background .18s;
}
.primary-button { color: #fff; border: 0; background: linear-gradient(105deg, #e488a4, #d67596); box-shadow: 0 10px 24px rgba(215,113,151,.22); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(215,113,151,.3); }
.primary-button span, .secondary-button span { font-size: 19px; font-weight: 400; }
.secondary-button { color: #3b3148; border: 1px solid #e9e3eb; background: #fff; }
.secondary-button:hover { border-color: #d6bed0; background: #fff9fb; }
.form-alert { padding: 12px 14px; color: #a43e5d; background: #fff0f2; border: 1px solid #f4ccd6; border-radius: 10px; font-size: 13px; }
.form-alert:empty, .form-alert:not(:has(li)) { display: none; }
.form-alert.account-deleted { display: block; color: #42865c; background: #f0f9f3; border-color: #d8eadd; }
.form-alert.account-notice { display: block; }
.form-alert ul { margin: 0; padding-left: 18px; }
.form-divider { display: flex; align-items: center; gap: 15px; margin: 27px 0 18px; color: #a5a0ac; font-size: 12px; }
.form-divider::before, .form-divider::after { content: ""; height: 1px; background: #eee9ef; flex: 1; }
.privacy-note { margin: 24px 0 0; color: #aaa5b0; font-size: 11px; line-height: 1.6; text-align: center; }
.privacy-note span { color: #ce90a5; font-size: 15px; vertical-align: -1px; padding-right: 4px; }
.form-foot { color: #bab5c0; font-size: 11px; text-align: center; }
.form-foot span { padding: 0 6px; }
.register-wrap { padding: 20px 0; }
.register-wrap .form-intro { margin-bottom: 22px; }
.register-wrap .auth-form { gap: 13px; }
.intent-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.intent-fieldset legend { margin-bottom: 9px; color: #302b3e; font-size: 13px; font-weight: 750; }
.intent-options { display: grid; gap: 9px; }
.intent-option { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid #e8e3ea; border-radius: 11px; background: #fff; cursor: pointer; }
.intent-option:has(input:checked) { border-color: #d482a2; background: #fff7fa; }
.intent-option:focus-within { outline: 2px solid #d482a2; outline-offset: 2px; }
.intent-option input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #cf7a9d; }
.intent-option strong { display: block; color: #302b3e; font-size: 13px; }
.intent-option small { display: block; margin-top: 4px; color: #817b8a; font-size: 11px; line-height: 1.45; }
.register-wrap .field input, .register-wrap .field select { height: 48px; }
.register-wrap .primary-button { margin-top: 6px; }
.register-preferences { display: grid; gap: 13px; margin: 12px 0 4px; padding: 18px; border: 1px solid var(--border, #dedee8); border-radius: 16px; }
.register-preferences legend { padding: 0 6px; font-weight: 700; }
.register-preferences > p { margin: 0 0 3px; font-size: .9rem; }
.photo-message-option { display: flex; align-items: flex-start; gap: 10px; color: #514058; font-size: 14px; line-height: 1.5; cursor: pointer; }
.photo-message-option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #cf7a9d; }
.photo-message-option input:focus-visible { outline: 2px solid #d798b8; outline-offset: 2px; }
.photo-message-help { margin: 5px 0 0 28px; color: #75677a; font-size: 12px; line-height: 1.5; }
.terms-acceptance { margin: 8px 0; font-size: 13px; line-height: 1.5; color: #53495e; }
.terms-acceptance-row { display: flex; align-items: flex-start; gap: 10px; }
.terms-acceptance label { cursor: pointer; }
.terms-acceptance input { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.terms-acceptance a { color: #9c4c75; text-decoration: underline; font-weight: 700; }
.legal-page { min-height: 100dvh; background: #faf7f9; color: #302b3e; }
.legal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px max(22px, calc((100vw - 900px) / 2)); background: #fffdfd; border-bottom: 1px solid #eee6ed; }
.legal-back { color: #9c678a; font-size: 13px; font-weight: 700; }
.legal-content { max-width: 820px; margin: 0 auto; padding: 40px 22px 70px; }
.legal-content h1 { margin: 10px 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; }
.legal-meta { color: #7c7484; font-size: 13px; }
.legal-lead { font-size: 17px; line-height: 1.65; }
.legal-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 38px; }
.legal-index a { padding: 9px 13px; border-radius: 20px; background: #f2eaf0; color: #794969; font-size: 12px; font-weight: 700; }
.legal-content section { padding: 23px 0; border-top: 1px solid #eadfe8; scroll-margin-top: 24px; }
.legal-content h2 { margin: 0 0 16px; font-size: 22px; }
.legal-content section p { margin: 0 0 14px; line-height: 1.7; color: #514959; }
.legal-content section p a { color: #9c4c75; text-decoration: underline; }
.legal-footer { padding: 22px; text-align: center; color: #88808f; font-size: 12px; }
.switch-link { margin: 21px 0 0; text-align: center; color: #817b8a; font-size: 13px; }
.switch-link a { color: #ce6d8d; font-weight: 750; padding-left: 3px; }
.switch-link a:hover { text-decoration: underline; }
.register-wrap .privacy-note { margin-top: 18px; }

.home-shell { min-height: 100vh; background: radial-gradient(circle at 83% 20%, #fbe3eb 0, transparent 34%), #fcf9fb; }
.home-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 27px clamp(24px, 6vw, 85px); border-bottom: 1px solid #f0e8ef; }
.logout-button { border: 1px solid #e9dfe8; border-radius: 9px; color: #5d5063; background: #fff; padding: 11px 15px; font-size: 12px; font-weight: 700; }
.logout-button:hover { background: #fff6f9; }
.logout-button span { padding-left: 5px; }
.welcome-area { width: min(100% - 36px, 750px); margin: clamp(55px, 10vh, 110px) auto 0; }
.welcome-card { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 67px); background: #fff; border: 1px solid #f0e7ed; border-radius: 25px; box-shadow: 0 30px 70px rgba(87,50,76,.07); }
.welcome-glow { position: absolute; width: 280px; height: 280px; right: -90px; top: -130px; border-radius: 50%; background: #fce5ed; filter: blur(13px); }
.welcome-card > *:not(.welcome-glow) { position: relative; }
.welcome-card h1 { font-size: clamp(38px, 6vw, 58px); letter-spacing: -3px; margin: 23px 0 13px; color: #2b2435; }
.welcome-card p { color: #797181; font-size: 16px; line-height: 1.7; max-width: 540px; margin: 0; }
.next-card { display: flex; align-items: center; gap: 16px; margin-top: 37px; padding: 18px; border-radius: 13px; background: #faf3f7; }
.next-card div { display: flex; flex-direction: column; gap: 5px; }
.next-card strong { color: #4c3b54; font-size: 13px; }
.next-card div span { color: #998e9c; font-size: 12px; }
.next-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; color: #da7698; border-radius: 11px; background: #f9e0e9; font-size: 22px; }
.welcome-privacy { margin-top: 22px; text-align: center; color: #9a8e9c; font-size: 12px; }
.simple-page { min-height: 100vh; padding: 36px; background: #fcf8fb; }
.simple-card { max-width: 480px; margin: 15vh auto 0; padding: 40px; background: white; border: 1px solid #f0e7ed; border-radius: 20px; }
.simple-card h1 { font-size: 32px; letter-spacing: -1px; margin: 18px 0 8px; }
.simple-card p { color: #89818d; margin-bottom: 25px; }

@media (max-width: 1000px) {
    .auth-shell { grid-template-columns: minmax(360px, 44%) minmax(0, 1fr); }
    .story-panel { padding-left: 38px; padding-right: 38px; }
    .story-content h1 { letter-spacing: -3px; }
    .form-panel { padding-left: 34px; padding-right: 34px; }
}
@media (max-width: 760px) {
    .auth-shell { display: block; min-height: 100svh; }
    .story-panel { display: none; }
    .form-panel { min-height: 100svh; padding: 26px 24px 20px; }
    .mobile-brand { display: block; }
    .form-wrap { padding: 52px 0; }
    .register-wrap { padding: 34px 0; }
}
@media (max-width: 480px) {
    .form-panel { padding-left: 22px; padding-right: 22px; }
    .form-wrap h2 { font-size: 39px; }
    .field-grid { grid-template-columns: 1fr; gap: 13px; }
    .register-wrap .auth-form { gap: 13px; }
    .register-wrap { padding: 28px 0; }
    .form-foot { padding-top: 15px; }
    .home-header { padding: 22px; }
    .logout-button { font-size: 0; }
    .logout-button span { font-size: 18px; padding: 0; }
    .welcome-card { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
