:root {
    color-scheme: light;
    --ink: #26233b;
    --muted: #706c82;
    --coral: #ff6f61;
    --coral-dark: #ed5548;
    --yellow: #ffc83d;
    --aqua: #26bfd0;
    --cream: #fff9ec;
    --paper: rgba(255, 255, 255, .9);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(circle at 9% 12%, rgba(255, 200, 61, .42) 0 8%, transparent 20%),
        radial-gradient(circle at 94% 84%, rgba(38, 191, 208, .3) 0 9%, transparent 22%),
        linear-gradient(135deg, #fff7df 0%, #fff3ec 48%, #edfaff 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 17rem;
    height: 17rem;
    border: 2px solid rgba(255, 111, 97, .16);
    border-radius: 40% 60% 62% 38%;
    transform: rotate(28deg);
}

body::before { top: -7rem; right: -5rem; }
body::after { bottom: -8rem; left: -5rem; border-color: rgba(38, 191, 208, .18); }

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(24px, 6vh, 72px) 0 24px;
}

.card {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    min-height: min(700px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 36px;
    background: var(--paper);
    box-shadow: 0 26px 80px rgba(66, 47, 64, .13), inset 0 1px 0 #fff;
    backdrop-filter: blur(18px);
}

.copy {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 7vw, 88px);
}

.brand {
    align-self: flex-start;
    margin-bottom: clamp(48px, 8vh, 88px);
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: .2em;
    text-decoration: none;
}

.brand span { color: var(--coral); }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--coral-dark);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: var(--yellow);
}

h1 {
    margin: 0;
    font-size: clamp(2.55rem, 5vw, 4.7rem);
    line-height: .98;
    letter-spacing: -.055em;
}

h1 em {
    color: var(--coral);
    font-style: normal;
}

.intro {
    max-width: 570px;
    margin: 26px 0 36px;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.65;
}

.login label {
    display: block;
    margin-bottom: 10px;
    font-size: .82rem;
    font-weight: 800;
}

.input-row {
    display: flex;
    max-width: 570px;
    padding: 6px;
    border: 1px solid #e7e2e4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(65, 46, 61, .08);
    transition: border-color .2s, box-shadow .2s;
}

.input-row:focus-within {
    border-color: rgba(255, 111, 97, .7);
    box-shadow: 0 10px 30px rgba(255, 111, 97, .14), 0 0 0 4px rgba(255, 111, 97, .1);
}

input {
    min-width: 0;
    flex: 1;
    padding: 13px 16px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
}

button {
    border: 0;
    border-radius: 13px;
    padding: 13px 20px;
    color: #fff;
    background: var(--coral);
    box-shadow: 0 8px 18px rgba(237, 85, 72, .24);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s, background .18s;
}

button:hover { background: var(--coral-dark); transform: translateY(-1px); }
button:focus-visible { outline: 3px solid rgba(38, 191, 208, .5); outline-offset: 3px; }

.secondary { color: var(--ink); background: var(--yellow); box-shadow: none; }
.secondary:hover { background: #ffbb16; }

.hint, .error { margin: 10px 4px 0; font-size: .78rem; }
.hint { color: #918b99; }
.error { color: #c73935; font-weight: 700; }

.visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
    background: linear-gradient(145deg, #dcf9f7, #d9f4fb 50%, #e9e0ff);
}

.visual::before {
    content: "";
    position: absolute;
    width: min(36vw, 440px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .25);
}

.visual img {
    position: relative;
    z-index: 1;
    width: min(100%, 570px);
    height: auto;
    filter: drop-shadow(0 26px 24px rgba(47, 83, 92, .18));
    animation: float 5s ease-in-out infinite;
}

.visual p {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 28px;
    margin: 0;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 15px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 28px rgba(43, 70, 80, .1);
    backdrop-filter: blur(10px);
    font-size: .8rem;
    line-height: 1.45;
}

.blob { position: absolute; border-radius: 50%; }
.blob-one { top: 9%; right: 8%; width: 24px; height: 24px; background: var(--coral); }
.blob-two { bottom: 15%; left: 8%; width: 18px; height: 18px; background: var(--yellow); }

.footer {
    margin: 17px 0 0;
    color: #8b8490;
    font-size: .76rem;
    text-align: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-.4deg); }
    50% { transform: translateY(-10px) rotate(.4deg); }
}

@media (max-width: 820px) {
    .shell { width: min(100% - 20px, 620px); padding-top: 10px; }
    .card { grid-template-columns: 1fr; border-radius: 26px; }
    .copy { padding: 32px 26px 40px; }
    .brand { margin-bottom: 44px; }
    .visual { min-height: 370px; order: -1; padding: 24px; }
    .visual img { width: min(92%, 410px); }
    .visual::before { width: 280px; }
    .visual p { right: 18px; bottom: 16px; }
}

@media (max-width: 480px) {
    .visual { min-height: 300px; }
    .input-row { display: grid; gap: 6px; }
    input { width: 100%; }
    button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
