/* FIONA sign-in: standalone styles keep the entry screen small and isolated. */
:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1d1d1f;
    background: #f5f5f7;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.login-page {
    min-width: 280px;
    min-height: 100vh;
    min-height: 100svh;
    background: radial-gradient(ellipse at 50% 0%, #fff 0%, transparent 66%), #f5f5f7;
}

.login-ambient {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 34% 42% at 34% 55%, #b8d9ff66, transparent 100%),
        radial-gradient(ellipse 30% 36% at 67% 64%, #c4c9f958, transparent 100%),
        radial-gradient(ellipse 38% 24% at 48% 88%, #bce8ed55, transparent 100%);
}

.login-ambient::after {
    content: "";
    position: absolute;
    width: 940px;
    height: 940px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    border: 1px solid #ffffff80;
    border-radius: 50%;
    box-shadow: 0 0 0 100px #ffffff18, 0 0 0 200px #ffffff12;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 48px 24px 32px;
}

.login-panel {
    width: min(440px, 100%);
    padding: 36px 40px 25px;
    border: 1px solid #ffffffeb;
    border-radius: 30px;
    background: #ffffffbf;
    box-shadow:
        0 32px 80px -28px #334b7833,
        0 8px 24px -12px #334b781a,
        0 0 0 1px #798bb00c,
        inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(32px) saturate(140%);
    backdrop-filter: blur(32px) saturate(140%);
    animation: login-arrive .6s cubic-bezier(.2, .7, .2, 1) both;
}

.login-brand { text-align: center; }
.login-mark {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
}
.login-mark::before {
    content: "";
    position: absolute;
    inset: 10px -5px -7px;
    border-radius: 24px;
    background: linear-gradient(130deg, #28bbd947, #528bff47 50%, #b5a6ed52);
    filter: blur(16px);
}
.login-mark img {
    position: relative;
    display: block;
    border-radius: 19px;
    box-shadow: 0 3px 8px #061e3b14, 0 0 0 1px #ffffffb3;
}
.login-wordmark {
    margin: 0;
    padding-left: .16em;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: .16em;
}
.login-tagline {
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6e6e79;
    letter-spacing: .015em;
}
.login-heading {
    margin: 30px 0 24px;
    text-align: center;
}
.login-heading h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -.035em;
    font-weight: 600;
}
.login-heading p {
    margin: 7px 0 0;
    color: #73737e;
    font-size: 13px;
    line-height: 1.5;
}
.login-form { display: grid; gap: 18px; }
.login-field { display: grid; gap: 8px; min-width: 0; }
.login-field label {
    padding-left: 3px;
    color: #494951;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}
.login-input-wrap { position: relative; }
.login-input-wrap input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 15px 0 44px;
    border: 1px solid #d5d7de;
    border-radius: 13px;
    outline: none;
    background: #ffffffb8;
    box-shadow: 0 1px 2px #1d1d1f03;
    color: #1d1d1f;
    font-size: 16px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-input-wrap input:hover { border-color: #b3bac7; }
.login-input-wrap input:focus {
    border-color: #0071e3;
    background: #fff;
    box-shadow: 0 0 0 4px #0071e31c;
}
.login-input-wrap input:-webkit-autofill {
    -webkit-text-fill-color: #1d1d1f;
    -webkit-box-shadow: 0 0 0 100px #f3f7ff inset;
}
.login-input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #f3f7ff inset, 0 0 0 4px #0071e31c;
}
.login-panel svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-input-icon {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 15px;
    color: #8b91a0;
    pointer-events: none;
    transition: color .18s ease;
}
.login-input-wrap:focus-within .login-input-icon { color: #0071e3; }
.login-password-wrap input { padding-right: 50px; }
.login-password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #7c8390;
    background: transparent;
    cursor: pointer;
}
.login-password-toggle:hover { color: #0071e3; background: #0071e308; }
.login-password-toggle:focus-visible { outline: 2px solid #0071e3; outline-offset: -2px; }
.login-eye-slash { display: none; }
.login-password-toggle[aria-pressed="true"] .login-eye-slash { display: block; }
.login-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin-top: 6px;
    padding: 13px 44px;
    border: 1px solid #0070df;
    border-radius: 13px;
    background: linear-gradient(180deg, #1689fb, #0071e3);
    box-shadow: 0 4px 10px #0071e31a, inset 0 1px 0 #ffffff26;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.login-submit svg { position: absolute; right: 17px; width: 18px; height: 18px; }
.login-submit:hover {
    background: linear-gradient(180deg, #2996ff, #0077ed);
    box-shadow: 0 6px 16px #0071e32b, inset 0 1px 0 #ffffff26;
    transform: translateY(-1px);
}
.login-submit:active { transform: translateY(0); box-shadow: 0 2px 6px #0071e31a; }
.login-submit:focus-visible { outline: 3px solid #0071e34d; outline-offset: 3px; }
.login-access-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 21px 0 0;
    color: #777e89;
    font-size: 11px;
    line-height: 1.5;
}
.login-access-note svg { width: 14px; height: 14px; }
.login-footer {
    margin-top: 26px;
    color: #797e8b;
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: .025em;
    text-align: center;
}
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -4px 0 20px;
    padding: 12px;
    border: 1px solid #b423181f;
    border-radius: 12px;
    background: #fff3f2;
    color: #a52920;
    font-size: 12px;
    line-height: 1.5;
}
.login-error svg { flex: 0 0 17px; height: 17px; margin-top: 1px; }

@keyframes login-arrive {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .login-shell { padding: 28px 18px 24px; }
    .login-panel { padding: 30px 26px 24px; border-radius: 26px; }
    .login-ambient { background: radial-gradient(ellipse at 50% 60%, #c4dcff80, transparent 75%); }
    .login-heading { margin-top: 26px; }
    .login-footer { margin-top: 22px; }
}

@media (max-height: 740px) and (min-width: 481px) {
    .login-shell { padding-top: 24px; padding-bottom: 20px; }
    .login-panel { padding-top: 26px; padding-bottom: 22px; }
    .login-mark { width: 56px; height: 56px; margin-bottom: 12px; }
    .login-mark img { width: 56px; height: 56px; border-radius: 16px; }
    .login-heading { margin: 22px 0 20px; }
    .login-footer { margin-top: 20px; }
}

@media (max-height: 680px) {
    .login-shell { padding-top: 20px; padding-bottom: 18px; }
    .login-panel { padding-top: 24px; padding-bottom: 20px; }
    .login-mark { width: 48px; height: 48px; margin-bottom: 12px; }
    .login-mark img { width: 48px; height: 48px; border-radius: 14px; }
    .login-wordmark { font-size: 28px; }
    .login-heading { margin: 18px 0; }
    .login-form { gap: 14px; }
    .login-access-note { margin-top: 18px; }
    .login-footer { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
    .login-panel { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (forced-colors: active) {
    .login-ambient { display: none; }
    .login-panel { border: 1px solid CanvasText; }
    .login-input-wrap input:focus { outline: 2px solid Highlight; }
    .login-submit { border: 1px solid ButtonText; }
}
