body {
    background: linear-gradient(135deg, #343063 0%, #A8B0FB 100%);
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #343063;
    display: flex;
    align-items: center;
    justify-content: center;
}
* { box-sizing: border-box; }
.login-container {
    background: rgba(251,248,204,0.95); /* #FBF8CC */
    width: 380px;
    max-width: calc(100% - 40px);
    padding: 2.2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(52,48,99,0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-10px);
    animation: floatIn 420ms ease-out forwards;
    align-items: stretch; /* ensure children fill width */
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(8px) scale(0.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-container h1 {
    color: #343063;
    margin: 0;
    font-size: 1.6rem;
    text-align: center;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.heart { color: #FFC7F5; font-size:1.1rem; }
form { display: flex; flex-direction: column; gap: 0.8rem; width:100%; }
.login-container input, .login-container button { display: block; width: 100%; box-sizing: border-box; }
.login-container input {
    max-width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(168,176,251,0.6);
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    transition: box-shadow 160ms, transform 120ms;
}
.login-container input:focus {
    box-shadow: 0 6px 20px rgba(168,176,251,0.16);
    transform: translateY(-2px);
    outline: none;
    border-color: #A8B0FB;
}
.login-container button {
    padding: 0.9rem;
    background: linear-gradient(90deg, #B9FBC0 0%, #FFC7F5 100%);
    color: #343063;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms, box-shadow 120ms;
}
.login-container button:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(52,48,99,0.12); }
.error {
    color: #343063;
    background: linear-gradient(90deg, rgba(255,199,245,0.95) 0%, rgba(185,251,192,0.95) 100%);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 220ms, transform 220ms;
}
.error.visible { opacity: 1; transform: translateY(0); }
small.hint { text-align: center; color: rgba(52,48,99,0.7); display:block; margin-top:0.4rem; }
@media (max-width: 420px) {
    .login-container { width: calc(100% - 28px); padding:1.6rem; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
