    :root {
        --cafe-bg: #fff8e1;
        --cafe-brown: #795548;
        --cafe-brown-light: #a1887f;
        --cafe-yellow: #ffecb3;
        --cafe-white: #ffffff;
        --cafe-accent: #ff9800;
        --cafe-pink: #e91e63;
    }
    * { box-sizing: border-box; }
    body {
        margin: 0;
        min-height: 100vh;
        font-family: 'Varela Round', sans-serif;
        background-color: var(--cafe-bg);
        background-image: radial-gradient(var(--cafe-yellow) 15%, transparent 16%);
        background-size: 28px 28px;
        color: var(--cafe-brown);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }
    .bg-glow {
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 30%, rgba(255, 236, 179, 0.6) 0%, transparent 55%);
        z-index: 0;
    }
    .floating-icon {
        position: absolute;
        opacity: 0.07;
        color: var(--cafe-brown);
        z-index: 0;
        animation: drift 18s linear infinite;
    }
    @keyframes drift {
        from { transform: translate(0, 0) rotate(0deg); }
        to { transform: translate(40px, -40px) rotate(40deg); }
    }
    .card {
        position: relative;
        z-index: 1;
        width: 100%;
        background: var(--cafe-white);
        border: 6px solid var(--cafe-brown);
        border-radius: 2.5rem;
        padding: 2.75rem 2.25rem 2.25rem;
        box-shadow: 10px 10px 0px rgba(121, 85, 72, 0.12);
        animation: pop-in 0.5s cubic-bezier(.2,1.4,.4,1) both;
    }
    @keyframes pop-in {
        from { opacity: 0; transform: translateY(24px) scale(0.96); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .logo-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: -1.25rem auto 0.75rem;
        width: 168px;
        height: 168px;
    }
    .logo-ring {
        position: absolute;
        inset: 0;
        border: 6px dashed var(--cafe-brown);
        border-radius: 50%;
        opacity: 0.12;
        animation: rotate 50s linear infinite;
    }
    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    .logo-img {
        width: 132px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 16px 14px rgba(121, 85, 72, 0.3));
        animation: float 6s ease-in-out infinite;
        z-index: 1;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(-2deg); }
        50% { transform: translateY(-10px) rotate(2deg); }
    }
    h1 {
        font-family: 'Quicksand', sans-serif;
        font-weight: 900;
        font-size: 1.5rem;
        text-align: center;
        margin: 0 0 0.25rem;
        color: var(--cafe-brown);
        letter-spacing: -0.02em;
    }
    .subtitle {
        text-align: center;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--cafe-accent);
        margin-bottom: 1.75rem;
    }
    label {
        display: block;
        font-size: 0.65rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        opacity: 0.55;
        margin-bottom: 0.4rem;
    }
    .field { margin-bottom: 1.1rem; }
    .input-wrap { position: relative; }
    .field-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        opacity: 0.45;
        color: var(--cafe-brown);
        pointer-events: none;
    }
    .icon-sm {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    input {
        width: 100%;
        height: 50px;
        padding: 0 14px 0 42px;
        border: 3px solid var(--cafe-brown-light);
        border-radius: 1.1rem;
        background: var(--cafe-bg);
        font-family: 'Varela Round', sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--cafe-brown);
        outline: none;
        transition: all 0.2s;
    }
    input::placeholder { color: var(--cafe-brown-light); opacity: 0.7; }
    input:focus {
        border-color: var(--cafe-accent);
        background: var(--cafe-white);
        box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.12);
    }
    button[type="submit"] {
        width: 100%;
        height: 52px;
        margin-top: 0.5rem;
        border: none;
        border-radius: 1.1rem;
        background: var(--cafe-accent);
        color: white;
        font-family: 'Quicksand', sans-serif;
        font-weight: 900;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        box-shadow: 0 6px 0 rgba(121, 85, 72, 0.18);
        transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    }
    button[type="submit"]:hover { background: #fb8c00; }
    button[type="submit"]:active {
        transform: translateY(4px);
        box-shadow: 0 2px 0 rgba(121, 85, 72, 0.18);
    }
    button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }
    .error-banner {
        display: none;
        align-items: center;
        gap: 0.5rem;
        background: rgba(233, 30, 99, 0.08);
        border: 2px solid rgba(233, 30, 99, 0.25);
        color: var(--cafe-pink);
        border-radius: 0.9rem;
        padding: 0.6rem 0.85rem;
        font-size: 0.75rem;
        font-weight: 700;
        margin-bottom: 1.1rem;
        animation: shake 0.4s;
    }
    .error-banner.show { display: flex; }
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
    }
    .footer-note {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        opacity: 0.3;
    }
    .login-stage {
        position: relative;
        width: 100%;
        max-width: 380px;
        margin: 24px auto;
        z-index: 1;
    }
    .gardevoir-peek,
    .marinette-peek,
    .peach-peek {
        position: absolute;
        z-index: 0;
        height: auto;
        pointer-events: none;
    }
    .gardevoir-peek {
        width: 180px;
        left: 50%;
        top: -150px;
        transform: translateX(-50%) rotate(-3deg);
        filter: drop-shadow(0 10px 10px rgba(121, 85, 72, 0.3));
        animation: peek-bob 6s ease-in-out infinite;
    }
    .marinette-peek {
        width: 155px;
        left: 0%;
        top: -122px;
        transform: rotate(-9deg);
        filter: drop-shadow(-4px 8px 8px rgba(121, 85, 72, 0.28));
        animation: peek-sway-left 7s ease-in-out infinite;
        animation-delay: -1.5s;
    }
    .peach-peek {
        width: 155px;
        right: 0%;
        top: -112px;
        transform: rotate(9deg);
        filter: drop-shadow(4px 8px 8px rgba(121, 85, 72, 0.28));
        animation: peek-sway-right 8s ease-in-out infinite;
        animation-delay: -3s;
    }
    @keyframes peek-bob {
        0%, 100% { transform: translateX(-50%) rotate(-3deg) translateY(0); }
        50% { transform: translateX(-50%) rotate(2deg) translateY(-6px); }
    }
    @keyframes peek-sway-left {
        0%, 100% { transform: rotate(-9deg) translateY(0); }
        50% { transform: rotate(-5deg) translateY(-7px); }
    }
    @keyframes peek-sway-right {
        0%, 100% { transform: rotate(9deg) translateY(0); }
        50% { transform: rotate(5deg) translateY(-7px); }
    }
    @media (max-width: 560px) {
        .gardevoir-peek {
            width: 125px;
            top: -64px;
        }
        .marinette-peek {
            width: 75px;
            left: 2%;
            top: -34px;
        }
        .peach-peek {
            width: 75px;
            right: 2%;
            top: -34px;
        }
    }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
:focus-visible { outline: 2px solid #ff9800; outline-offset: 2px; }
