:root { --insmile-blue: #00bce4; }

body.login-page {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #223646;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page *, .login-page *::before, .login-page *::after { box-sizing: border-box; }
.login {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 48px 24px;
    background: radial-gradient(ellipse 400px 370px at 50% 48%, rgba(224, 247, 254, .62), rgba(248, 253, 255, .26) 56%, transparent 100%);
}
.login__content { width: min(100%, 340px); transform: translateY(-10px); }
.login__icon {
    display: grid;
    width: 124px;
    height: 124px;
    margin: 0 auto 62px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 30px;
    background: var(--insmile-blue);
    box-shadow: 0 19px 38px rgba(0, 188, 228, .24), 0 6px 13px rgba(0, 188, 228, .12), inset 0 1px 1px rgba(255, 255, 255, .3);
}
.login__smile { display: block; width: 79px; height: auto; }
.login__form { display: grid; gap: 18px; margin: 0; }
.login__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.login__field { position: relative; }
.login__lock { position: absolute; top: 50%; left: 19px; width: 21px; height: 21px; color: #9db2be; transform: translateY(-50%); pointer-events: none; }
.login-page .login__input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 20px 0 51px;
    border: 1px solid #d8e6eb;
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 15px rgba(40, 122, 154, .06), 0 1px 2px rgba(40, 122, 154, .05);
    color: #263e4a;
    font: inherit;
    font-size: 16px;
    transition: border-color .18s, box-shadow .18s;
}
.login__input::placeholder { color: #9caeb8; }
.login-page .login__input:focus { border-color: var(--insmile-blue); box-shadow: 0 0 0 4px rgba(27, 190, 226, .12), 0 5px 15px rgba(40, 122, 154, .06); }
.login-page .login__button {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: var(--insmile-blue);
    box-shadow: 0 10px 22px rgba(0, 188, 228, .2);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
}
.login__button:hover { transform: translateY(-1px); box-shadow: 0 13px 25px rgba(0, 188, 228, .25); }
.login__button:focus-visible { outline: 3px solid rgba(0, 144, 190, .45); outline-offset: 4px; }
.login__button:active { transform: translateY(0); }
.login__error { margin: -6px 2px -4px; color: #bb4b50; font-size: 13px; line-height: 1.4; }
@media (max-width: 480px) {
    .login__content { width: min(100%, 320px); }
    .login__icon { width: 112px; height: 112px; margin-bottom: 52px; border-radius: 27px; }
    .login__smile { width: 71px; }
}
@media (prefers-reduced-motion: reduce) { .login__input, .login__button { transition: none; } }
