:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #101c38;
    --blue: #1648e8;
    --horizontal: clamp(30px, 4.2vw, 64px);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: clamp(18px, 3.5vw, 56px);
    background: #eef2f7;
}
.signup {
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    width: min(100%, 1176px);
    margin: auto;
    border: 1px solid #bfccda;
    border-radius: 22px;
    background: white;
    box-shadow: 0 16px 50px -32px #324b694d;
    overflow: hidden;
}
.signup::before {
    content: "";
    grid-column: 1; grid-row: 1 / 3;
    z-index: -1;
    background: linear-gradient(155deg, #e8f2fc 0%, #f1f5f9 51%, #f6efeb 100%);
    border-inline-end: 1px solid #c6d3df;
}
.brand {
    grid-column: 1; grid-row: 1;
    display: flex; align-items: center; gap: 10px;
    margin: 32px var(--horizontal) 0;
    color: #122746; font-size: 2.05rem; font-weight: 750; letter-spacing: -.05em;
}
.brand img { width: 64px; height: 64px; object-fit: contain; }
.story {
    grid-column: 1; grid-row: 2;
    align-self: start; min-width: 0;
    padding: 24px var(--horizontal) 36px;
    color: #182d49;
}
h1, h2, p, figure, ul { margin: 0; }
.story h2 {
    text-wrap: balance;
    font-size: clamp(1.8rem, 2.45vw, 2.15rem);
    max-width: 21ch;
    letter-spacing: -.045em; line-height: 1.14;
}
.booking-benefits {
    margin-top: 24px;
    padding: 0;
    list-style: none;
}
.booking-benefits li {
    position: relative;
    padding: 16px 0 16px 32px;
    border-top: 1px solid #cbd8e5;
}
.booking-benefits li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 3px;
    width: 7px;
    height: 12px;
    border: solid var(--blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.booking-benefits strong, .booking-benefits span { display: block; }
.booking-benefits span { margin-top: 4px; color: #465a71; line-height: 1.5; }
.account {
    grid-column: 2; grid-row: 1 / 3;
    display: grid; align-content: center;
    min-width: 0; padding: 42px var(--horizontal);
}
.account-inner { width: 100%; max-width: 440px; margin: auto; }
h1 { font-size: clamp(1.6rem, 2.15vw, 1.9rem); line-height: 1.1; letter-spacing: -.058em; }
.mobile-intro { display: none; }
form { display: grid; gap: 17px; margin-top: 28px; }
.field { min-width: 0; }
.field > label { display: block; margin: 0 0 7px; font-size: .9rem; font-weight: 650; }
input, select, button { font: inherit; }
.field input, select {
    display: block; width: 100%; height: 47px; padding: 9px 13px;
    border: 1px solid #bac7dc; border-radius: 8px; background: white; color: #152444;
    font-size: 1rem; line-height: normal;
}
.field input::placeholder, select:invalid { color: #627089; }
select { cursor: pointer; }
:focus-visible { outline: 3px solid #668dff; outline-offset: 2px; }
.password-field { position: relative; }
.password-field input { padding-right: 65px; }
#show-password {
    position: absolute; right: 4px; top: 3px; bottom: 3px; padding-inline: 10px;
    border: 0; border-radius: 5px; background: transparent;
    color: #2347a7; font-size: .82rem; font-weight: 650; cursor: pointer;
}
#password-rules { margin-top: 6px; font-size: .8rem; color: #50617b; line-height: 1.5; }
summary { width: fit-content; cursor: pointer; }
#password-rules ul { margin-top: 6px; padding: 8px 12px; background: #f2f6fd; border-radius: 7px; list-style: none; }
#password-rules li::before { content: "○ "; }
#password-rules .met { color: #135e3d; }
#password-rules .met::before { content: "✓ "; }
a { color: #1843bf; font-weight: 600; text-underline-offset: 3px; }
.terms { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; line-height: 1.55; }
.terms input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.create {
    width: 100%; min-height: 48px; border: 0; border-radius: 9px;
    background: var(--blue); color: white; font-weight: 700; cursor: pointer;
}
.create:hover { background: #1038bb; }
.signin { margin-top: 18px; font-size: .88rem; color: #485872; text-align: center; }
.error-message {
    margin-top: 16px; padding: 12px 14px; border: 1px solid #eaa9a2;
    border-radius: 8px; background: #fff5f4; color: #8e211b; font-size: .9rem; line-height: 1.45;
}
@media (max-width: 799px) {
    body { display: block; padding: clamp(10px, 3vw, 22px); }
    .signup { display: block; max-width: 500px; padding: 22px clamp(16px, 4.6vw, 30px) 26px; border-radius: 16px; }
    .signup::before, .story { display: none; }
    .brand { margin: 0 0 21px; padding-bottom: 16px; border-bottom: 1px solid #dae3ea; font-size: 1.78rem; }
    .brand img { width: 48px; height: 48px; }
    .account { display: block; padding: 0; }
    h1 { font-size: clamp(1.55rem, 6.2vw, 1.8rem); }
    .mobile-intro { display: block; margin-top: 9px; color: #4d5d75; line-height: 1.5; }
    form { margin-top: 24px; gap: 15px; }
}
