:root {
    color-scheme: dark;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #f3fff8;
    background: #03271b;
}

* { box-sizing: border-box; }

.login-page { margin: 0; min-height: 100vh; }
.login-backdrop, .login-waves, .login-shimmer { position: fixed; pointer-events: none; }
.login-backdrop { inset: 0; overflow: hidden; background: #03271b; }
.login-waves {
    inset: -3%;
    background: #03271b url("../mylife-login-waves.png") center / cover no-repeat;
    animation: wave-drift 14s ease-in-out infinite;
}
.login-shimmer {
    inset: -12%;
    background: linear-gradient(122deg, transparent 24%, #a9fcd91a 42%, transparent 57%);
    mask-image: radial-gradient(ellipse at 0 0, black 0 18%, transparent 42%), radial-gradient(ellipse at 100% 100%, black 0 20%, transparent 48%);
    mix-blend-mode: screen;
    animation: wave-shimmer 10s ease-in-out infinite;
}
@keyframes wave-drift {
    0%, 100% { transform: translate(-.7%, -.5%) scale(1); }
    50% { transform: translate(.9%, .75%) scale(1.035); }
}
@keyframes wave-shimmer {
    0%, 100% { transform: translateX(-8%); opacity: .35; }
    50% { transform: translateX(8%); opacity: .82; }
}
@media (prefers-reduced-motion: reduce) {
    .login-waves, .login-shimmer { animation: none; }
}

.login-main { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 24px 16px; }
.login-card {
    width: min(100%, 420px);
    padding: clamp(24px, 5vw, 40px);
    border: 1px solid #b1edd746;
    border-radius: 22px;
    background: #092d24e8;
    box-shadow: 0 28px 80px #001b12b3;
    backdrop-filter: blur(18px);
}
.login-heading { margin: 0 0 26px; }
.login-brand { margin-bottom: 8px; color: #9ef1c8; font-size: 15px; font-weight: 700; }
.login-heading h1 { margin: 0; font-size: clamp(32px, 7vw, 42px); letter-spacing: -.045em; line-height: 1.08; }
.login-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.login-password-label { margin-top: 19px; }
.login-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #568375;
    border-radius: 9px;
    background: #06251e;
    color: #f3fff8;
    font: inherit;
}
.login-input:focus, button:focus-visible, .login-remember input:focus-visible { outline: 2px solid #87edba; outline-offset: 3px; }
.login-password { position: relative; }
.login-password .login-input { padding-right: 65px; }
.login-password-toggle {
    position: absolute;
    inset: 5px 5px 5px auto;
    min-width: 54px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #a6edce;
    font-family: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer;
}
.login-password-toggle:hover { background: #174638; }
.login-remember { display: flex; align-items: center; gap: 9px; margin-top: 19px; font-size: 14px; color: #c3e4d7; }
.login-remember input { width: 16px; height: 16px; margin: 0; accent-color: #90edbe; }
.login-submit { width: 100%; min-height: 48px; margin-top: 24px; border: 0; border-radius: 9px; background: #96edbd; color: #09291c; font: inherit; font-weight: 750; cursor: pointer; }
.login-submit:not(:disabled):hover { background: #c1f7d9; }
.login-submit:disabled { opacity: .65; cursor: default; }
.login-notice { margin: -7px 0 18px; padding: 9px 11px; border-radius: 8px; background: #174638; color: #d6f4e7; font-size: 13px; }
.login-error { background: #522a32; color: #ffdee4; }
