/* Login is intentionally independent of generated Tailwind utilities. */
.i24-login-screen {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 18px;
    background: linear-gradient(110deg, #0091af 0%, #4baaae 24%, #90c8b8 43%, #f2c061 63%, #ee993b 82%, #e74134 100%);
    color: #203e4b;
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.i24-login-screen *, .i24-login-screen *::before, .i24-login-screen *::after { box-sizing: border-box; }
/* Logo colours stay in the background; WAVES contributes only its moving light and facets. */
.i24-login-net {
    position: absolute; inset: 0; z-index: 0;
    display: block; width: 100%; height: 100%; overflow: hidden;
    isolation: isolate; pointer-events: none;
    background: linear-gradient(110deg, #0091af 0%, #4baaae 24%, #90c8b8 43%, #f2c061 63%, #ee993b 82%, #e74134 100%);
}
.i24-login-net > canvas {
    display: block; pointer-events: none;
    mix-blend-mode: luminosity;
    opacity: 0.9;
}
.i24-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    flex: 0 0 auto;
    padding: 32px;
    border: 1px solid #e2e9ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 48px #1c46520a, 0 2px 5px #1c465203;
}
.i24-login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 32px;
    right: 32px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #0091af, #4baaae 28%, #90c8b8 48%, #f2c061 68%, #ee993b 84%, #e74134);
}
.i24-login-header { margin: 0 0 24px; }
.i24-login-logo { display: block; width: 190px; max-width: 100%; height: auto; margin: 0 auto 25px; object-fit: contain; background: transparent; filter: none; }
.i24-login-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.i24-login-zone { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #d9e9ec; border-radius: 6px; background: #f2f9fa; color: #326c77; font-size: 11px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
.i24-login-zone > i { font-size: 10px; }
.i24-login-step { color: #657b87; font-size: 10.5px; line-height: 1.4; white-space: nowrap; }
.i24-login-intro { margin-bottom: 23px; }
.i24-login-intro h1 { margin: 0 0 8px; color: #173541; font-size: 27px; font-weight: 650; letter-spacing: -.8px; line-height: 1.18; }
.i24-login-intro p { margin: 0; color: #617783; font-size: 13px; font-weight: 400; line-height: 1.6; }
.i24-login-error { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; margin-bottom: 18px; border: 1px solid #efd8d5; border-radius: 8px; background: #fff7f5; color: #a2473e; font-size: 12px; font-weight: 450; line-height: 1.5; overflow-wrap: anywhere; }
.i24-login-error > i { flex: 0 0 auto; margin-top: 3px; font-size: 12px; }
.i24-login-form { display: flex; flex-direction: column; gap: 17px; margin: 0; }
.i24-login-field { min-width: 0; }
.i24-login-field > label { display: block; margin: 0 0 7px; color: #405c6a; font-size: 12px; font-weight: 500; line-height: 1.4; }
.i24-login-input-wrap { position: relative; }
.i24-login-input-wrap > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8ca2ac; font-size: 13px; pointer-events: none; }
.i24-login-field input { display: block; width: 100%; height: 48px; padding: 12px 14px; border: 1px solid #d7e2e7; border-radius: 9px; background: #fbfdfe; color: #284957; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.4; transition: border-color .15s, box-shadow .15s, background .15s; }
.i24-login-input-wrap > input { padding-left: 41px; }
.i24-login-password-wrap > input { padding-right: 49px; }
.i24-login-field input::placeholder { opacity: 1; color: #6c7f89; font-size: 13px; font-weight: 400; }
.i24-login-field input:hover { border-color: #bbcfd7; }
.i24-login-field input:focus { outline: none; border-color: #087e8b; background: #fff; box-shadow: 0 0 0 3px #087e8b10; }
.i24-login-field input[aria-invalid='true'] { border-color: #cf8b82; }
.i24-login-show-password { position: absolute; top: 4px; right: 5px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #748c96; font: inherit; font-size: 14px; cursor: pointer; }
.i24-login-show-password:hover { color: #087e8b; background: #edf6f7; }
.i24-login-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin: 4px 0 0; padding: 13px 17px; border: 1px solid #087e8b; border-radius: 9px; background: #087e8b; color: #fff; font: inherit; font-size: 14px; font-weight: 550; line-height: 1.4; cursor: pointer; box-shadow: 0 3px 8px #087e8b12; transition: background .15s, border-color .15s, box-shadow .15s; }
.i24-login-submit > i { font-size: 12px; }
.i24-login-submit:hover:not(:disabled) { background: #066b77; border-color: #066b77; box-shadow: 0 4px 11px #087e8b1a; }
.i24-login-submit:active:not(:disabled) { background: #075e69; }
.i24-login-submit:disabled { opacity: .58; cursor: not-allowed; box-shadow: none; }
.i24-login-card button:focus-visible { outline: 2px solid #087e8b; outline-offset: 3px; }
.i24-login-footer { display: flex; align-items: flex-start; gap: 7px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #edf1f3; color: #657b86; }
.i24-login-footer > i { flex: 0 0 auto; padding-top: 3px; font-size: 10px; color: #8298a2; }
.i24-login-footer > p { margin: 0; font-size: 11px; font-weight: 400; line-height: 1.65; }
.i24-login-back { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; margin: 13px auto -5px; border: 0; border-radius: 7px; background: transparent; color: #647e8b; font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; }
.i24-login-back > i { font-size: 10px; }
.i24-login-back:hover { color: #087e8b; background: #f2f8f9; }
.i24-login-field input.i24-login-code { padding: 10px 10px 10px 20px; font-size: 23px; font-weight: 500; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.i24-login-field input.i24-login-code::placeholder { color: #a7b6bd; font-size: 23px; font-weight: 400; letter-spacing: 10px; }
.i24-login-setup-panel { display: grid; grid-template-columns: 174px minmax(0, 1fr); align-items: center; gap: 15px; margin-bottom: 20px; padding: 12px; border: 1px solid #e4ecef; border-radius: 10px; background: #f8fbfc; }
.i24-login-qr { width: 174px; justify-self: center; padding: 6px; border: 1px solid #e4eaed; border-radius: 7px; background: #fff; }
.i24-login-qr > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.i24-login-manual-key { min-width: 0; }
.i24-login-manual-key > span { display: block; margin-bottom: 4px; color: #446675; font-size: 11px; font-weight: 550; line-height: 1.4; }
.i24-login-manual-key > p { margin: 0 0 8px; color: #6b818d; font-size: 10.5px; line-height: 1.5; }
.i24-login-manual-key > code { display: block; max-width: 100%; color: #2e6571; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 500px) {
    .i24-login-screen { padding: 24px 16px; }
    .i24-login-card { padding: 26px 24px 24px; border-radius: 18px; }
    .i24-login-card::before { left: 24px; right: 24px; }
    .i24-login-logo { width: 176px; margin-bottom: 23px; }
    .i24-login-header { margin-bottom: 22px; }
    .i24-login-intro h1 { font-size: 26px; }
    .i24-login-intro p { font-size: 12px; }
    .i24-login-context { gap: 7px; }
    .i24-login-zone { font-size: 10px; padding: 5px 7px; gap: 5px; }
    .i24-login-step { font-size: 9.5px; }
    .i24-login-field > label { font-size: 11.5px; }
    .i24-login-field input { font-size: 16px; }
    .i24-login-field input::placeholder { font-size: 12px; }
    .i24-login-setup-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px; }
    .i24-login-manual-key { text-align: center; }
}
@media (max-width: 350px) {
    .i24-login-screen { padding: 18px 12px; }
    .i24-login-card { padding: 25px 20px 22px; }
    .i24-login-context { flex-wrap: wrap; gap: 7px 10px; }
    .i24-login-intro h1 { font-size: 25px; }
    .i24-login-setup-panel { gap: 10px; padding: 8px; }
    .i24-login-manual-key > code { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .i24-login-screen input, .i24-login-submit { transition: none; }
}
