:root {
    --amp-blue: #1387c9;
    --amp-blue-strong: #0872b4;
    --amp-cyan: #31c4d8;
    --amp-green: #63d89a;
    --amp-ink: #07131d;
    --amp-panel: rgba(7, 17, 26, .92);
    --amp-text: #f5f8fa;
    --amp-muted: #9aaab4;
    --amp-line: rgba(255, 255, 255, .11);
    --amp-danger: #ff6f76;
    --scene-duration: 5.2s;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--amp-text);
    background: var(--amp-ink);
    letter-spacing: 0;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--amp-ink);
}

button,
input { font: inherit; }

button { cursor: pointer; }

.skip-link {
    position: fixed;
    z-index: 20;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #fff;
    color: #06243a;
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.login-scene {
    --parallax-x: 0px;
    --parallax-y: 0px;
    position: fixed;
    inset: -14px;
    overflow: hidden;
    background: #07131d;
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
    transition: transform 400ms ease-out;
    will-change: transform;
}

.scene-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: saturate(.78) contrast(1.09) brightness(.68);
    will-change: opacity, transform;
}

.scene-slide:first-child { background-image: url('../../Backgroundsite.webp'); }
.scene-slide:nth-child(2) { background-image: url('../../Backgroundsite2.webp'); }

.scene-slide.scene-a { transform: scale(1.025) translate3d(0, 0, 0); }
.scene-slide.scene-b { transform: scale(1.09) translate3d(-1%, 0, 0); }

.scene-slide.is-active {
    z-index: 2;
    opacity: 1;
}

.scene-slide.scene-a.is-active { animation: sceneA var(--scene-duration) linear both; }
.scene-slide.scene-b.is-active { animation: sceneB var(--scene-duration) linear both; }

.scene-slide.is-leaving {
    z-index: 3;
    opacity: 0;
    transition: opacity 900ms cubic-bezier(.4, 0, .2, 1);
}

.scene-slide.scene-a.is-leaving { transform: scale(1.085) translate3d(-1.2%, -.5%, 0); }
.scene-slide.scene-b.is-leaving { transform: scale(1.03) translate3d(.4%, -.25%, 0); }

@keyframes sceneA {
    from { transform: scale(1.025) translate3d(0, 0, 0); }
    to { transform: scale(1.085) translate3d(-1.2%, -.5%, 0); }
}

@keyframes sceneB {
    from { transform: scale(1.09) translate3d(-1%, 0, 0); }
    to { transform: scale(1.03) translate3d(.4%, -.25%, 0); }
}

.scene-shade {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: rgba(3, 14, 21, .56);
    box-shadow: inset 0 0 190px rgba(0, 0, 0, .34);
}

.scene-shade::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52%;
    background: rgba(3, 10, 16, .75);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.scene-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .015);
    box-shadow: inset 0 -180px 170px rgba(0, 7, 11, .32);
}

.scene-detail {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.scene-line {
    position: absolute;
    top: -18%;
    bottom: -18%;
    left: 53.3%;
    width: 1px;
    background: rgba(49, 196, 216, .2);
    box-shadow: 0 0 20px rgba(49, 196, 216, .08);
    transform: rotate(14deg);
}

.scene-signal {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amp-cyan);
    box-shadow: 0 0 0 7px rgba(49, 196, 216, .06), 0 0 20px rgba(49, 196, 216, .55);
    animation: signalPulse 2.8s ease-in-out infinite;
}

.scene-signal-one { right: 8%; bottom: 16%; }
.scene-signal-two { left: 46%; bottom: 31%; animation-delay: 1.1s; }

.login-page {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 46px 56px;
}

.login-layout {
    width: min(1210px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 102px;
}

.login-story {
    min-width: 0;
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .34);
    animation: storyIn 800ms cubic-bezier(.2, .85, .25, 1) both;
}

.story-brand {
    height: 142px;
    display: flex;
    align-items: center;
    margin-bottom: 26px;
}

.story-logo {
    width: 146px;
    height: 146px;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .35));
    animation: logoIn 900ms 80ms cubic-bezier(.18, .86, .2, 1) both;
}

.story-eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.story-eyebrow span {
    width: 34px;
    height: 3px;
    background: var(--amp-cyan);
    box-shadow: 0 0 14px rgba(49, 196, 216, .46);
}

.story-message { min-height: 208px; }

.story-message-inner {
    transition: opacity 220ms ease, transform 220ms ease;
}

.story-message-inner.is-changing {
    opacity: 0;
    transform: translateY(10px);
}

.story-title {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: 58px;
    line-height: 1.06;
    font-weight: 800;
    text-wrap: balance;
}

.story-copy {
    max-width: 610px;
    margin: 24px 0 0;
    color: rgba(239, 247, 250, .74);
    font-size: 16px;
    line-height: 1.65;
}

.story-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.story-areas span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 7px;
    background: rgba(5, 18, 27, .26);
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.story-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 42px;
    color: rgba(255, 255, 255, .64);
    font-size: 12px;
}

.story-footer .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amp-green);
    box-shadow: 0 0 0 5px rgba(99, 216, 154, .1), 0 0 13px rgba(99, 216, 154, .48);
}

.story-version {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.access-panel {
    min-width: 0;
    display: grid;
    place-items: center;
}

.access-panel-inner {
    width: 100%;
    animation: panelIn 760ms 120ms cubic-bezier(.2, .85, .25, 1) both;
}

.login-panel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 43px 38px 30px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: var(--amp-panel);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .42);
    backdrop-filter: blur(20px) saturate(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(1.05);
}

.panel-accent {
    position: absolute;
    top: 0;
    left: 38px;
    width: 116px;
    height: 3px;
    background: var(--amp-cyan);
    box-shadow: 0 0 22px rgba(49, 196, 216, .45);
}

.panel-heading { margin-bottom: 30px; }

.panel-kicker {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 8px 12px;
    border: 1px solid rgba(49, 196, 216, .34);
    border-radius: 999px;
    background: rgba(49, 196, 216, .06);
    color: #6cd7e5;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
}

.panel-heading p {
    margin: 11px 0 0;
    color: var(--amp-muted);
    font-size: 14px;
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 16px;
}

.field-control {
    position: relative;
    height: 62px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    background: rgba(255, 255, 255, .045);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field-control:focus-within {
    border-color: rgba(49, 196, 216, .82);
    background: rgba(49, 196, 216, .055);
    box-shadow: 0 0 0 3px rgba(49, 196, 216, .09), 0 11px 28px rgba(0, 0, 0, .18);
}

.field-control > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    width: 18px;
    color: #71838f;
    font-size: 15px;
    text-align: center;
    transform: translateY(-50%);
    transition: color 180ms ease;
    pointer-events: none;
}

.field-control:focus-within > i { color: var(--amp-cyan); }

.field-control input {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 17px 49px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fbfc;
    font-size: 15px;
}

.field-control label {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 49px;
    color: #8e9ca5;
    font-size: 14px;
    transform: translateY(-50%);
    transform-origin: left center;
    transition: top 170ms ease, color 170ms ease, font-size 170ms ease, transform 170ms ease;
    pointer-events: none;
}

.field-control input:focus + label,
.field-control input:not(:placeholder-shown) + label {
    top: 14px;
    color: #68d7e6;
    font-size: 10px;
    font-weight: 700;
    transform: translateY(0);
}

.field-line {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    overflow: hidden;
    border-radius: 0 0 7px 7px;
    background: var(--amp-cyan);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.field-control:focus-within .field-line { transform: scaleX(1); }

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 11px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #788a94;
    transition: color 160ms ease, background 160ms ease;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, .07);
    color: #d8e5e9;
}

.login-submit {
    position: relative;
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 5px;
    padding: 13px 18px;
    overflow: hidden;
    border: 1px solid rgba(112, 219, 233, .34);
    border-radius: 7px;
    background: var(--amp-blue-strong);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 15px 34px rgba(3, 100, 160, .25);
    transition: background 170ms ease, border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.login-submit::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -40%;
    width: 22%;
    height: 240%;
    background: rgba(255, 255, 255, .2);
    transform: rotate(19deg);
    transition: left 540ms ease;
}

.login-submit:hover {
    border-color: rgba(120, 230, 242, .62);
    background: var(--amp-blue);
    box-shadow: 0 18px 38px rgba(3, 112, 174, .34);
    transform: translateY(-1px);
}

.login-submit:hover::before { left: 125%; }
.login-submit:active { transform: translateY(0); }
.login-submit:disabled { cursor: wait; opacity: .8; }
.login-submit i { pointer-events: none; }
.login-submit .spinner { display: none; }
.login-submit.is-loading .spinner { display: inline-block; animation: spin 700ms linear infinite; }
.login-submit.is-loading .login-icon { display: none; }

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 111, 118, .33);
    border-left: 3px solid var(--amp-danger);
    border-radius: 6px;
    background: rgba(255, 111, 118, .08);
    color: #ff9298;
    font-size: 13px;
    line-height: 1.4;
    animation: errorIn 300ms ease both;
}

.panel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--amp-line);
    color: #73848e;
    font-size: 10px;
    font-weight: 700;
}

.panel-meta {
    margin: 17px 0 0;
    color: rgba(255, 255, 255, .35);
    font-size: 10px;
    text-align: center;
}

.panel-meta span { margin: 0 6px; }

.scene-progress {
    position: fixed;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
}

.scene-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--amp-cyan);
    box-shadow: 0 0 12px rgba(49, 196, 216, .5);
    transform: scaleX(0);
    transform-origin: left center;
    animation: sceneProgress var(--scene-duration) linear both;
}

button:focus-visible {
    outline: 3px solid #f1bd4c;
    outline-offset: 3px;
}

input:focus-visible { outline: 0; }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes storyIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoIn {
    from { opacity: 0; transform: scale(.86) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes errorIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes signalPulse {
    0%, 100% { opacity: .42; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes sceneProgress { to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
    .login-page { padding-right: 36px; padding-left: 36px; }
    .login-layout { grid-template-columns: minmax(0, 1fr) 410px; gap: 52px; }
    .story-title { font-size: 48px; }
    .story-message { min-height: 185px; }
}

@media (max-width: 760px) {
    body { overflow-y: auto; }
    .login-scene { inset: -9px; }
    .scene-slide:first-child { background-position: 42% center; }
    .scene-slide:nth-child(2) { background-position: 48% center; }
    .scene-shade { background: rgba(2, 13, 20, .67); box-shadow: inset 0 0 100px rgba(0, 0, 0, .28); }
    .scene-shade::before { display: none; }
    .scene-line { display: none; }
    .scene-signal-two { display: none; }
    .login-page { place-items: start center; padding: 25px 16px 35px; }
    .login-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .login-story { text-align: center; }
    .story-brand { height: 82px; justify-content: center; margin-bottom: 10px; }
    .story-logo { width: 88px; height: 88px; }
    .story-eyebrow { justify-content: center; margin-bottom: 14px; }
    .story-eyebrow span { width: 24px; }
    .story-message { min-height: 105px; }
    .story-title { max-width: 520px; margin: 0 auto; font-size: 32px; line-height: 1.1; }
    .story-copy { display: none; }
    .story-areas { justify-content: center; margin-top: 9px; }
    .story-areas span { min-height: 30px; padding: 6px 10px; }
    .story-footer { display: none; }
    .access-panel-inner { width: min(440px, 100%); }
    .login-panel { padding: 31px 25px 25px; }
    .panel-accent { left: 25px; }
    .panel-kicker { margin-bottom: 20px; }
    .panel-heading { margin-bottom: 24px; }
    .panel-heading h2 { font-size: 27px; }
}

@media (max-width: 370px) {
    .login-page { padding: 18px 11px 28px; }
    .story-brand { height: 72px; }
    .story-logo { width: 78px; height: 78px; }
    .story-title { font-size: 28px; }
    .story-message { min-height: 94px; }
    .story-areas span { font-size: 10px; }
    .login-panel { padding: 27px 18px 22px; }
    .panel-accent { left: 18px; }
    .panel-heading h2 { font-size: 25px; }
    .panel-footer { font-size: 9px; }
}

@media (max-height: 760px) and (min-width: 761px) {
    .login-page { padding-top: 24px; padding-bottom: 24px; }
    .story-brand { height: 100px; margin-bottom: 16px; }
    .story-logo { width: 110px; height: 110px; }
    .story-eyebrow { margin-bottom: 14px; }
    .story-title { font-size: 45px; }
    .story-message { min-height: 164px; }
    .story-copy { margin-top: 17px; }
    .story-areas { margin-top: 16px; }
    .story-footer { margin-top: 24px; }
    .login-panel { padding-top: 30px; padding-bottom: 24px; }
    .panel-kicker { margin-bottom: 18px; }
    .panel-heading { margin-bottom: 22px; }
    .panel-footer { margin-top: 20px; padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-scene { transform: none; transition: none; }
    .scene-slide { animation: none !important; transition: opacity 200ms linear; }
    .scene-slide.scene-a.is-active,
    .scene-slide.scene-b.is-active { transform: scale(1.03); }
    .login-story,
    .story-logo,
    .access-panel-inner,
    .login-error,
    .scene-signal,
    .scene-progress span { animation: none; }
    .story-message-inner { transition: none; }
}
