@keyframes fokus-brand-pulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.82);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fokus-orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fokus-hero-energy {
    0%,
    100% {
        opacity: 0.72;
        transform: scaleX(0.88);
        transform-origin: left;
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes fokus-frame-flow {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 200% 50%;
    }
}

@keyframes account-recovery-scan {
    0%,
    42% {
        transform: translateX(-145%) skewX(-18deg);
    }

    72%,
    100% {
        transform: translateX(185%) skewX(-18deg);
    }
}

@keyframes account-recovery-glow {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 0 0 1px rgba(13, 187, 194, 0.2),
            0 7px 18px rgba(10, 132, 169, 0.14),
            0 0 12px rgba(30, 199, 205, 0.12);
    }

    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.96),
            0 0 0 2px rgba(57, 93, 218, 0.17),
            0 9px 24px rgba(60, 67, 194, 0.2),
            0 0 22px rgba(20, 207, 203, 0.25);
    }
}

@keyframes account-recovery-dot {
    0%,
    100% {
        opacity: 0.52;
        transform: scale(0.72);
    }

    50% {
        opacity: 1;
        transform: scale(1.22);
    }
}

.aurora-page {
    isolation: isolate;
    border-color: rgba(112, 139, 201, 0.24);
    box-shadow:
        0 30px 86px rgba(38, 67, 137, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.78),
        0 0 28px rgba(22, 164, 188, 0.08),
        0 0 46px rgba(101, 79, 205, 0.07);
}

.aurora-page::before {
    position: absolute;
    z-index: 20;
    inset: 0;
    padding: 1.5px;
    content: "";
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(
            105deg,
            transparent 0%,
            transparent 9%,
            rgba(18, 207, 198, 0.88) 16%,
            rgba(55, 112, 218, 0.62) 23%,
            transparent 32%,
            transparent 63%,
            rgba(112, 78, 211, 0.58) 73%,
            rgba(39, 142, 211, 0.52) 81%,
            transparent 91%,
            transparent 100%
        )
        0% 50% / 200% 100%;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: fokus-frame-flow 12s linear infinite;
}

.aurora-page::after {
    position: absolute;
    z-index: 21;
    inset: 0;
    content: "";
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg, transparent, rgba(17, 196, 192, 0.76), rgba(255, 255, 255, 0.9), rgba(105, 75, 209, 0.66), transparent)
            center top / 230px 2px no-repeat,
        linear-gradient(90deg, transparent, rgba(35, 118, 213, 0.46), rgba(104, 77, 207, 0.56), transparent)
            center bottom / 160px 1px no-repeat,
        radial-gradient(circle, rgba(18, 201, 196, 0.9) 0 2px, rgba(18, 201, 196, 0.16) 3px, transparent 5px)
            18px 18px / 10px 10px no-repeat,
        radial-gradient(circle, rgba(108, 78, 211, 0.84) 0 2px, rgba(108, 78, 211, 0.14) 3px, transparent 5px)
            calc(100% - 18px) calc(100% - 18px) / 10px 10px no-repeat;
    opacity: 0.82;
    filter: drop-shadow(0 0 4px rgba(51, 102, 211, 0.22));
}

.hero-copy {
    width: min(76%, 470px);
    max-width: 470px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.hero-copy::after {
    position: absolute;
    top: -18px;
    right: 0;
    width: 82px;
    height: 1px;
    content: "";
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(13, 181, 184, 0.78), rgba(102, 75, 212, 0.66), transparent);
    box-shadow: 0 0 12px rgba(69, 94, 206, 0.24);
}

.hero-copy h1 {
    color: transparent;
    background: linear-gradient(105deg, #06133f 0%, #123d91 43%, #5738bd 68%, #007f89 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    letter-spacing: -0.06em;
    text-shadow: none;
    filter:
        drop-shadow(0 2px 1px rgba(255, 255, 255, 0.94))
        drop-shadow(0 5px 10px rgba(23, 56, 132, 0.25));
}

.hero-copy > span {
    position: relative;
    width: 112px;
    height: 4px;
    margin-top: 17px;
    overflow: visible;
    background: linear-gradient(90deg, #08c7bd 0%, #3167cc 54%, #7650d6 100%);
    box-shadow:
        0 0 14px rgba(19, 190, 187, 0.36),
        0 0 22px rgba(102, 73, 212, 0.2);
    animation: fokus-hero-energy 2.8s ease-in-out infinite;
}

.hero-copy > span::after {
    position: absolute;
    top: 50%;
    right: -8px;
    width: 7px;
    height: 7px;
    content: "";
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: #7750d7;
    box-shadow: 0 0 12px rgba(104, 72, 215, 0.72);
}

.auth-panel {
    isolation: isolate;
    background:
        radial-gradient(circle at 88% 12%, rgba(113, 86, 226, 0.14), transparent 34%),
        radial-gradient(circle at 9% 76%, rgba(17, 194, 190, 0.12), transparent 38%),
        linear-gradient(145deg, rgba(253, 254, 255, 0.96), rgba(239, 247, 255, 0.93) 55%, rgba(248, 243, 255, 0.94));
}

.auth-panel::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(55, 102, 180, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 102, 180, 0.09) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(circle at 82% 16%, #000 0%, transparent 60%);
    mask-image: radial-gradient(circle at 82% 16%, #000 0%, transparent 60%);
}

.login-brand {
    width: 100%;
    margin: 0 0 24px;
    padding: 11px 13px;
    display: grid;
    grid-template-columns: auto auto minmax(36px, 1fr);
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(84, 126, 202, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(
            105deg,
            rgba(232, 250, 255, 0.76),
            rgba(242, 237, 255, 0.58) 58%,
            rgba(255, 255, 255, 0.18)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 14px 34px rgba(38, 87, 157, 0.08);
    transform: translateY(-30px);
}

.login-brand__emblem {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16, 167, 180, 0.36);
    border-radius: 13px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(225, 238, 255, 0.72) 52%, rgba(236, 222, 255, 0.66));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 26px rgba(23, 99, 173, 0.13),
        0 0 22px rgba(104, 74, 218, 0.12);
}

.login-brand__emblem::before,
.login-brand__emblem::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(31, 71, 171, 0.48);
    border-radius: 50%;
}

.login-brand__emblem::before {
    width: 22px;
    height: 11px;
    animation: fokus-orbit-spin 9s linear infinite;
}

.login-brand__emblem::after {
    width: 11px;
    height: 22px;
    animation: fokus-orbit-spin 7s linear infinite reverse;
}

.login-brand__emblem span {
    position: relative;
    z-index: 1;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, #16d7c7, #2055bd);
    box-shadow:
        0 0 0 4px rgba(25, 194, 190, 0.1),
        0 0 15px rgba(84, 79, 221, 0.66);
    animation: fokus-brand-pulse 2.4s ease-in-out infinite;
}

.login-brand__copy {
    min-width: max-content;
    display: flex;
    flex-direction: column;
}

.login-brand__copy strong {
    color: transparent;
    background: linear-gradient(100deg, #0b1d58 0%, #3451bc 45%, #7254d9 67%, #0aaea8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.31em;
}

.login-brand__copy small {
    margin-top: 5px;
    color: #5570a5;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.42em;
}

.login-brand__line {
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(20, 173, 181, 0.68),
        rgba(105, 77, 216, 0.38) 54%,
        transparent
    );
    box-shadow: 0 0 12px rgba(102, 79, 218, 0.2);
}

.field-input--date {
    color-scheme: light;
}

.field-input--date::-webkit-calendar-picker-indicator {
    margin-right: -20px;
    opacity: 0.62;
    cursor: pointer;
}

.form-options .account-recovery-button {
    position: relative;
    isolation: isolate;
    min-height: 38px;
    padding: 9px 15px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #087f92;
    background:
        linear-gradient(135deg, rgba(239, 255, 255, 0.94), rgba(238, 239, 255, 0.94)) padding-box,
        linear-gradient(105deg, #14c8c1, #356fd1 52%, #7950dd) border-box;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(13, 187, 194, 0.2),
        0 7px 18px rgba(10, 132, 169, 0.14),
        0 0 12px rgba(30, 199, 205, 0.12);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.035em;
    text-decoration: none;
    animation: account-recovery-glow 2.6s ease-in-out infinite;
}

.form-options .account-recovery-button::before {
    position: absolute;
    z-index: 0;
    top: -55%;
    bottom: -55%;
    left: -32%;
    width: 30%;
    content: "";
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.92),
        rgba(106, 244, 255, 0.7),
        transparent
    );
    filter: blur(1px);
    animation: account-recovery-scan 3.1s ease-in-out infinite;
}

.form-options .account-recovery-button::after {
    position: relative;
    z-index: 1;
    width: 6px;
    height: 6px;
    margin-left: 9px;
    display: inline-block;
    content: "";
    border-radius: 50%;
    background: linear-gradient(145deg, #0dd9cf, #6651db);
    box-shadow:
        0 0 7px rgba(10, 206, 203, 0.92),
        0 0 14px rgba(93, 73, 216, 0.72);
    vertical-align: 0.08em;
    animation: account-recovery-dot 1.5s ease-in-out infinite;
}

.form-options .account-recovery-button > span {
    position: relative;
    z-index: 1;
    color: transparent;
    background: linear-gradient(100deg, #007f91 0%, #2159ba 52%, #6543c7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-options .account-recovery-button:hover,
.form-options .account-recovery-button:focus-visible {
    color: #213aa8;
    background:
        linear-gradient(135deg, rgba(229, 255, 255, 0.98), rgba(232, 231, 255, 0.98)) padding-box,
        linear-gradient(105deg, #08ddd2, #3f69da 50%, #8658ef) border-box;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 0 0 3px rgba(42, 191, 205, 0.14),
        0 10px 26px rgba(53, 70, 196, 0.22),
        0 0 25px rgba(21, 208, 204, 0.28);
    outline: 0;
    transform: translateY(-1px);
}

@media (min-width: 821px) {
    html,
    body {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body {
        padding: 12px;
    }

    .aurora-page {
        height: min(700px, calc(100dvh - 24px));
        min-height: 0;
    }

    .aurora-hero,
    .auth-panel {
        min-height: 0;
    }
}

@media (min-width: 821px) and (max-height: 720px) {
    body {
        padding: 8px;
    }

    .aurora-page {
        height: calc(100dvh - 16px);
        min-height: 0;
    }

    .auth-panel {
        min-height: 0;
        padding: 20px 42px 14px;
    }

    .field {
        margin-bottom: 13px;
    }

    .login-brand {
        margin-bottom: 15px;
        transform: translateY(-22px);
    }

    .field label {
        margin-bottom: 6px;
    }

    .field-input {
        height: 52px;
        border-radius: 18px;
    }

    .form-options {
        margin-bottom: 15px;
    }

    .primary-button {
        height: 52px;
        border-radius: 19px;
    }

    .secure-note {
        margin-top: 12px;
    }

    .privacy-note {
        margin-top: 5px;
    }

    .hero-copy {
        top: auto;
        bottom: 30px;
        padding: 0;
        border-radius: 0;
    }

    .hero-copy::after {
        top: -15px;
        right: 0;
        width: 64px;
        height: 1px;
    }

    .aurora-art {
        object-position: center top;
    }

    .back-button {
        margin-bottom: 12px;
    }

    .auth-description {
        margin: 7px 0 13px;
    }

    .security-note {
        margin-top: 10px;
    }
}

@media (min-width: 821px) and (max-height: 580px) {
    .auth-panel {
        padding: 12px 36px 9px;
    }

    .field {
        margin-bottom: 9px;
    }

    .login-brand {
        margin-bottom: 10px;
        padding: 8px 10px;
        gap: 10px;
        transform: translateY(-16px);
    }

    .login-brand__emblem {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .login-brand__copy strong {
        font-size: 1.12rem;
    }

    .login-brand__copy small {
        margin-top: 4px;
        font-size: 0.49rem;
    }

    .field label {
        margin: 0 0 4px 7px;
        font-size: 0.75rem;
    }

    .field-input {
        height: 46px;
        border-radius: 16px;
        font-size: 0.86rem;
    }

    .field-icon {
        font-size: 1rem;
    }

    .field-action {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .form-options {
        margin: 0 5px 10px;
    }

    .primary-button {
        height: 46px;
        border-radius: 17px;
    }

    .secure-note {
        margin-top: 8px;
    }

    .privacy-note {
        margin-top: 3px;
    }

    .hero-copy {
        bottom: 20px;
        padding: 0;
        border-radius: 0;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    }

    .hero-copy span {
        width: 88px;
        margin-top: 11px;
    }

    .back-button {
        margin-bottom: 8px;
        font-size: 0.74rem;
    }

    .auth-kicker {
        margin-bottom: 4px;
        font-size: 0.62rem;
    }

    .auth-title {
        font-size: 1.65rem;
    }

    .auth-description {
        margin: 4px 0 8px;
        font-size: 0.76rem;
    }

    .security-note {
        margin-top: 7px;
        font-size: 0.66rem;
    }
}
