:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #243653;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: #afd2f7 url("./login-background.png") center / cover no-repeat;
}
.login-card {
    width: min(100%, 440px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 23px;
    background: linear-gradient(160deg,#fff 38%,#f3f6fc);
    box-shadow: 0 26px 64px -22px #253e6980, 0 3px 12px #283d6126;
}
.brand-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 23px;
    color: white;
    text-align: center;
    background: linear-gradient(125deg,#ee0927,#ca001b 54%,#a10018);
}
.brand-band::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 75%; height: 230%;
    right: -26%; top: -138%;
    border: 18px solid #ffffff20;
    border-radius: 50%;
    transform: rotate(-31deg);
}
h1 { margin: 0; font-size: 3rem; font-weight: 750; letter-spacing: .065em; line-height: 1.1; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; vertical-align: -.2em; }
h2 .icon { color: #bc1029; margin-right: .25em; }
form { padding: 25px clamp(22px, 6vw, 38px) 16px; }
h2 { margin: 0 0 21px; font-size: 1.38rem; line-height: 1.35; }
h2::after { content: ""; display: block; width: 38px; height: 3px; margin-top: 7px; background: #d50524; border-radius: 3px; }
label { display: block; margin-bottom: 6px; font-size: 1.04rem; font-weight: 700; }
input, button { width: 100%; min-height: 45px; font: inherit; border-radius: 9px; }
.field { position: relative; margin-bottom: 15px; }
.field-icon { position: absolute; inset: 1px auto 1px 1px; width: 43px; border-radius: 8px 0 0 8px; display: grid; place-items: center; pointer-events: none; }
.user-icon { color: #155cce; background: #e8f0ff; }
.lock-icon { color: #a86000; background: #fff0d8; }
input { padding: 9px 13px 9px 54px; color: #192c49; background: #f5f8fd; border: 1px solid #abbcd3; }
input { padding-right: 48px; font-size: 1.06rem; font-weight: 700; }
.mail-icon { inset: 1px 1px 1px auto; color: #155cce; }
#password::-ms-reveal { display: none; }
.visibility { position: absolute; inset: 1px 1px 1px auto; width: 44px; min-height: 0; border: 0; background: transparent; color: #50647d; cursor: pointer; }
.visibility:hover { background: #e1ebf6; }
input:focus-visible, button:focus-visible { outline: 3px solid #255eac; outline-offset: 2px; }
.submit { margin: 5px 0 0; border: 1px solid #b10019; background: linear-gradient(#ec1730,#bc0018); color: white; font-weight: 700; cursor: pointer; box-shadow: 0 3px 7px #99051d30; }
.submit .icon { margin-right: .35em; }
.submit:hover { background: #b4001a; }
.error { color: #85132a; background: #fff0f2; border-inline-start: 3px solid #ce1530; padding: 10px; }
.card-wave { position: relative; height: 34px; overflow: hidden; }
.card-wave::before, .card-wave::after { content: ""; position: absolute; width: 75%; height: 43px; border-radius: 50%; bottom: -32px; }
.card-wave::before { left: -5%; transform: rotate(5deg); background: #dfb9c3; }
.card-wave::after { right: -8%; transform: rotate(-7deg); background: #d696a4; }
