@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --snack: #ffaf20;
    --snack-text: #1a0f00;
    --dark: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #f8fafc;
    color: var(--dark);
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.login-brand {
    position: relative;
    overflow: hidden;
    padding: 48px 52px;
    color: #fff;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 48%, #111827 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-brand::after,
.login-brand::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-brand::after {
    width: 420px;
    height: 420px;
    right: -140px;
    top: -90px;
    background: radial-gradient(circle, rgba(255,175,32,.38) 0%, rgba(255,175,32,0) 70%);
}

.login-brand::before {
    width: 340px;
    height: 340px;
    left: -110px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(255,175,32,.22) 0%, rgba(255,175,32,0) 70%);
}

.login-brand-content,
.login-brand-footer { position: relative; z-index: 1; }

.store-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--snack);
    color: var(--snack-text);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.store-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--snack-text);
}

.login-brand h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.15rem);
    line-height: 1.08;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.login-brand p {
    max-width: 420px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,.76);
    margin: 0;
}

.login-brand-footer {
    color: rgba(255,255,255,.5);
    font-size: .88rem;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #f8fafc;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.login-card h2 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    letter-spacing: -.02em;
}

.login-card .subtitle {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: .98rem;
}

.login-alert {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: .92rem;
}

.login-field { margin-bottom: 16px; }

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: .88rem;
    font-weight: 600;
    color: #334155;
}

.login-field input[type="email"],
.login-field input[type="password"] {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 1rem;
    background: #f8fafc;
    color: var(--dark);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--snack);
    box-shadow: 0 0 0 4px rgba(255,175,32,.22);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 22px;
    color: #475569;
    font-size: .92rem;
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--snack);
}

.login-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--snack);
    color: var(--snack-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.login-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255,175,32,.35);
}

.login-submit:focus {
    outline: 3px solid rgba(255,175,32,.45);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-brand {
        min-height: auto;
        padding: 28px 24px 32px;
    }
    .login-brand-footer { display: none; }
    .login-brand p { font-size: .95rem; }
    .login-panel { padding: 24px 16px 40px; }
    .login-card { padding: 28px 22px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit, .login-field input { transition: none; }
    .login-submit:hover { transform: none; }
}
