:root {
    color-scheme: light;
    --ink: #4d2a25;
    --paper: #fffaf0;
    --pink: #f6a7ad;
    --rose: #d96b78;
    --yellow: #ffd978;
    --mint: #b8ddca;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 217, 120, .55) 0 7%, transparent 7.2%),
        radial-gradient(circle at 88% 82%, rgba(184, 221, 202, .65) 0 10%, transparent 10.2%),
        linear-gradient(145deg, #f8c4c7 0%, #fff1dc 48%, #f7d9b7 100%);
    font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(77, 42, 37, .13) 3px 4px);
    mix-blend-mode: multiply;
}

.login-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    position: relative;
    overflow: hidden;
}

.login-card {
    width: min(100%, 530px);
    position: relative;
    z-index: 2;
    padding: clamp(34px, 7vw, 58px) clamp(24px, 7vw, 56px) 34px;
    text-align: center;
    background: var(--paper);
    border: 1px solid rgba(77, 42, 37, .13);
    border-radius: 30px 12px 30px 12px;
    box-shadow: 16px 18px 0 rgba(77, 42, 37, .15), 0 22px 80px rgba(113, 59, 52, .18);
    transform: rotate(-.45deg);
}

.login-card::before,
.login-card::after {
    content: "";
    position: absolute;
    width: 92px;
    height: 27px;
    background: rgba(255, 217, 120, .72);
    box-shadow: 0 2px 5px rgba(77, 42, 37, .08);
}

.login-card::before { top: -10px; left: -24px; transform: rotate(-34deg); }
.login-card::after { right: -26px; bottom: 8px; transform: rotate(-39deg); }

.mini-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(77, 42, 37, .16);
    border-radius: 999px;
    background: #fff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.mini-date i { color: var(--rose); font-style: normal; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--rose);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

h1 {
    max-width: 390px;
    margin: 0 auto 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 8vw, 4rem);
    font-style: italic;
    line-height: .95;
    letter-spacing: -.045em;
}

.intro {
    max-width: 380px;
    margin: 0 auto 28px;
    color: #79544e;
    font-size: .98rem;
    line-height: 1.55;
}

.password-form { text-align: left; }

.password-form label {
    display: block;
    margin: 0 0 8px 4px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

input,
button {
    min-height: 54px;
    border-radius: 14px;
    font: inherit;
}

input {
    width: 100%;
    min-width: 0;
    padding: 0 17px;
    color: var(--ink);
    background: #fff;
    border: 2px solid #ead8ca;
    outline: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(246, 167, 173, .22);
    transform: translateY(-1px);
}

button {
    padding: 0 20px;
    border: 0;
    color: #fff;
    background: var(--ink);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 0 #2e1714;
    transition: transform .15s, box-shadow .15s, background .15s;
}

button:hover { background: #654039; transform: translateY(-1px); }
button:active { transform: translateY(4px); box-shadow: 0 1px 0 #2e1714; }

.login-hint,
.login-error {
    min-height: 20px;
    margin: 11px 4px 0;
    text-align: center;
    font-size: .78rem;
    font-weight: 750;
}

.login-hint { color: #98746c; }
.login-error { color: #b43d4d; animation: nudge .32s ease-out; }

.tiny-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    color: #98746c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .82rem;
}

.tiny-note p { margin: 0; line-height: 1.45; }
.tiny-note strong { color: var(--ink); }
.tiny-note span { color: var(--rose); }

.floating-heart {
    position: absolute;
    color: rgba(217, 107, 120, .55);
    font-family: Georgia, serif;
    line-height: 1;
    animation: float 5s ease-in-out infinite;
}

.heart-one { top: 10%; left: 9%; font-size: 5rem; transform: rotate(-18deg); }
.heart-two { right: 8%; bottom: 10%; font-size: 7rem; transform: rotate(15deg); animation-delay: -1.8s; }
.heart-three { top: 18%; right: 14%; font-size: 2.5rem; transform: rotate(10deg); animation-delay: -3.2s; }

@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-5px); }
    70% { transform: translateX(5px); }
}

@media (max-width: 540px) {
    .login-card { transform: none; box-shadow: 9px 11px 0 rgba(77, 42, 37, .13); }
    .password-row { grid-template-columns: 1fr; }
    button { width: 100%; }
    .floating-heart { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
