:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #142747;
    background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.sign-in-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.sign-in-brand {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    padding: clamp(2rem, 5vw, 5.5rem);
    color: #f5f9ff;
    background: radial-gradient(ellipse at 95% 93%, #2256ad, transparent 65%), #112e62;
}

.sign-in-brand::before, .sign-in-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -10rem;
    bottom: -18rem;
    width: 34rem;
    aspect-ratio: 1;
    border: 1px solid #93bfff6b;
    border-radius: 50%;
    box-shadow: 0 0 0 2.4rem #81b2ff1a, 0 0 0 5rem #81b2ff14, 0 0 0 7.5rem #81b2ff12;
}

.sign-in-brand::after { right: -1rem; bottom: -25rem; }

.company {
    display: flex;
    align-items: center;
    gap: .9rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.company > span:last-child > span { display: block; opacity: .78; font-weight: 500; }
.company-mark {
    position: relative;
    overflow: hidden;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff;
}
.company-mark img { position: absolute; width: 238px; max-width: none; top: -1px; left: 0; }
.company-message p { color: #c5ddff; font-size: .88rem; font-weight: 600; margin: 0 0 1.25rem; }
.company-message div { font-size: clamp(2.8rem, 6vw, 6.75rem); letter-spacing: -.068em; line-height: .98; font-weight: 700; }
.company-footer { color: #d3e3fb; font-size: .77rem; }

.sign-in-main { display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 5rem); }
.sign-in-card { width: min(100%, 25rem); }
.mobile-company { display: none; }
.sign-in-card h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.15rem); font-weight: 740; letter-spacing: -.06em; line-height: 1.05; }
.sign-in-intro { margin: .85rem 0 2rem; color: #4f6381; line-height: 1.5; }
.sign-in-error { margin-bottom: 1rem; border: 1px solid #f4c9c2; border-radius: .7rem; padding: .7rem .9rem; background: #fff0ed; color: #8e2e27; }
.sign-in-field { margin: 0 0 1.15rem; }
.sign-in-field label { display: block; margin-bottom: .45rem; font-size: .91rem; font-weight: 700; }
.sign-in-field input { width: 100%; min-height: 3.15rem; padding: .7rem .85rem; border: 1px solid #728caf; border-radius: .72rem; background: #fff; color: inherit; }
.sign-in-password { position: relative; }
.sign-in-password input { padding-right: 4.7rem; }
.sign-in-password button { position: absolute; right: .25rem; top: .25rem; bottom: .25rem; padding: 0 .6rem; border: 0; border-radius: .5rem; background: transparent; color: #16498d; font-size: .84rem; font-weight: 700; cursor: pointer; }
.sign-in-password button:hover { background: #edf4ff; }
.sign-in-submit { display: flex; justify-content: space-between; align-items: center; margin-top: 1.65rem; width: 100%; min-height: 3.15rem; padding: .7rem 1rem; color: #fff; background: #174fb5; border: 1px solid transparent; border-radius: .75rem; font-weight: 700; cursor: pointer; }
.sign-in-submit:hover { background: #103b87; }
:where(button, input):focus-visible { outline: 3px solid #316ed2; outline-offset: 3px; }

@media (max-width: 720px) {
    .sign-in-layout { display: block; }
    .sign-in-brand { display: none; }
    .sign-in-main { min-height: 100vh; min-height: 100dvh; padding: 2.25rem 1.4rem; }
    .mobile-company { display: flex; margin-bottom: 2.6rem; }
}
