:root {
    --color1: #07131f;
    --color2: #0b1e30;
    --color3: #15324f;
    --color4: #c8102e;
    --color5: #ffffff;
    --color6: #a8bac8;
    --color7: #5bc8e8;
    --color8: rgba(255, 255, 255, 0.12);
    --color9: rgba(255, 255, 255, 0.07);
    --color10: rgba(7, 22, 46, 0.82);
    --color11: #020814;
}

.auth-login-page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: 28px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color5);
    background:
        radial-gradient(circle at 80% 0%, rgba(91, 200, 232, 0.08), transparent 34%),
        radial-gradient(circle at 12% 86%, rgba(200, 16, 46, 0.08), transparent 30%),
        linear-gradient(140deg, #030c15 0%, #07131f 52%, #0a1a2e 100%);
    isolation: isolate;
}

.auth-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -5;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%);
}

.auth-login-page::after {
    content: "";
    position: absolute;
    width: min(680px, 92vw);
    height: min(680px, 92vw);
    left: 50%;
    top: 50%;
    z-index: -4;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 216, 242, 0.08), transparent 62%);
    filter: blur(4px);
}

.auth-orbit {
    position: absolute;
    left: -18%;
    right: -18%;
    z-index: -2;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(-13deg);
}

.auth-orbit-1 {
    top: 31%;
    border-top: 1px solid rgba(94, 216, 242, 0.46);
    animation: authOrbitOne 7s ease-in-out infinite alternate;
}

.auth-orbit-2 {
    top: 45%;
    border-top: 1px solid rgba(94, 216, 242, 0.25);
    animation: authOrbitTwo 8s ease-in-out infinite alternate;
}

.auth-orbit-3 {
    top: 73%;
    border-top: 1px solid rgba(94, 216, 242, 0.36);
    animation: authOrbitThree 9s ease-in-out infinite alternate;
}

.auth-dot {
    position: absolute;
    z-index: -1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color7);
    box-shadow:
        0 0 0 5px rgba(94, 216, 242, 0.08),
        0 0 24px rgba(94, 216, 242, 0.82);
    animation: authDotPulse 2.8s ease-in-out infinite;
}

.auth-dot-1 {
    left: 20%;
    top: 38%;
}

.auth-dot-2 {
    right: 30%;
    top: 50%;
    animation-delay: 0.8s;
}

.auth-dot-3 {
    left: 18%;
    bottom: 16%;
    animation-delay: 1.4s;
}

.auth-login-panel {
    position: relative;
    width: min(100%, 460px);
    max-height: calc(100svh - 56px);
    padding: 38px 38px 36px;
    overflow: hidden;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 32%),
        radial-gradient(circle at 85% 18%, rgba(94, 216, 242, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(11, 30, 48, 0.9), rgba(7, 19, 31, 0.88));
    border: 1px solid rgba(91, 200, 232, 0.18);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(94, 216, 242, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: authPanelIn 0.9s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-login-panel::before {
    content: "";
    position: absolute;
    left: -25%;
    right: -25%;
    top: 110px;
    height: 132px;
    border-top: 1px solid rgba(94, 216, 242, 0.26);
    border-radius: 50%;
    transform: rotate(-8deg);
    pointer-events: none;
}

.auth-login-panel::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%, rgba(94, 216, 242, 0.07));
    opacity: 0.65;
}

.auth-login-brand,
.auth-login-form {
    position: relative;
    z-index: 2;
}

.auth-login-brand {
    text-align: center;
    margin-bottom: 26px;
    animation: authFadeUp 0.8s ease 0.12s both;
}

.auth-login-logo {
    display: block;
    width: auto;
    height: 76px;
    margin: 0 auto 14px;
    object-fit: contain;
    filter: drop-shadow(0 16px 26px rgba(94, 216, 242, 0.16));
}

.auth-login-brand h1 {
    margin: 0;
    color: var(--color5);
    font-size: 26px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.auth-login-brand p {
    margin: 14px 0 0;
    color: var(--color7);
    font-size: 11px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-form-group {
    margin-bottom: 18px;
    animation: authFadeUp 0.8s ease 0.22s both;
}

.auth-form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.auth-form-group label {
    display: inline-flex;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 500;
}

.auth-input-wrap {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(190, 227, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.35s ease;
}

.auth-input-wrap:focus-within {
    border-color: rgba(94, 216, 242, 0.62);
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 0 0 4px rgba(94, 216, 242, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.auth-input-wrap > i {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
}

.auth-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    color: var(--color5);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
}

.auth-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-password-toggle {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    transition: all 0.35s ease;
}

.auth-password-toggle:hover {
    color: var(--color7);
    background: rgba(255, 255, 255, 0.08);
}

.auth-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 22px;
    animation: authFadeUp 0.8s ease 0.38s both;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--color5);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-remember span {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 6px;
    background: var(--color7);
    box-shadow: 0 8px 20px rgba(94, 216, 242, 0.24);
}

.auth-remember span::after {
    content: "\f00c";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 7 Free";
    font-size: 10px;
    font-weight: 900;
    color: var(--color1);
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.25s ease;
}

.auth-remember input:checked + span::after {
    opacity: 1;
    transform: scale(1);
}

.auth-login-options a {
    color: var(--color7);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.35s ease;
}

.auth-login-options a:hover {
    color: var(--color5);
}

.auth-login-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    border-radius: 9px;
    color: var(--color5);
    background:
        linear-gradient(180deg, rgba(238, 26, 66, 1), rgba(204, 13, 48, 1));
    font-size: 15px;
    font-weight: 800;
    box-shadow:
        0 14px 34px rgba(215, 25, 63, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: all 0.35s ease;
    animation: authFadeUp 0.8s ease 0.46s both;
}

.auth-login-btn i {
    font-size: 15px;
    transition: transform 0.35s ease;
}

.auth-login-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 24px 58px rgba(215, 25, 63, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.auth-login-btn:hover i {
    transform: translateX(6px);
}

.auth-home-link {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(190, 227, 255, 0.24);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.35s ease;
    animation: authFadeUp 0.8s ease 0.54s both;
}

.auth-home-link i {
    color: var(--color7);
    font-size: 13px;
    transition: transform 0.35s ease;
}

.auth-home-link:hover {
    color: var(--color5);
    border-color: rgba(94, 216, 242, 0.52);
    background: rgba(94, 216, 242, 0.1);
    box-shadow:
        0 12px 28px rgba(94, 216, 242, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-home-link:hover i {
    transform: translateX(-4px);
}

.auth-status {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 9px;
    color: var(--color5);
    background: rgba(94, 216, 242, 0.12);
    border: 1px solid rgba(94, 216, 242, 0.32);
    font-size: 13px;
    line-height: 1.45;
}

.auth-error {
    display: block;
    margin-top: 8px;
    color: #ff8aa1;
    font-size: 12px;
}

/* ANIMATION */
@keyframes authPanelIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes authOrbitOne {
    from {
        transform: rotate(-13deg) translateX(-24px);
    }

    to {
        transform: rotate(-11deg) translateX(30px);
    }
}

@keyframes authOrbitTwo {
    from {
        transform: rotate(-13deg) translateY(16px);
    }

    to {
        transform: rotate(-15deg) translateY(-18px);
    }
}

@keyframes authOrbitThree {
    from {
        transform: rotate(-15deg) translateX(22px);
    }

    to {
        transform: rotate(-13deg) translateX(-30px);
    }
}

@keyframes authDotPulse {
    0%,
    100% {
        opacity: 0.95;
        transform: scale(1);
    }

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

/* RESPONSIVE */
@media (max-height: 760px) and (min-width: 768px) {
    .auth-login-page {
        align-items: flex-start;
        overflow-y: auto;
    }

    .auth-login-panel {
        max-height: none;
        margin: 0 auto;
        padding: 30px 34px 30px;
    }

    .auth-login-brand {
        margin-bottom: 20px;
    }

    .auth-login-logo {
        height: 60px;
        margin-bottom: 10px;
    }

    .auth-login-brand h1 {
        font-size: 23px;
    }

    .auth-login-brand p {
        margin-top: 10px;
        font-size: 10px;
    }

    .auth-form-group {
        margin-bottom: 14px;
    }

    .auth-login-options {
        margin-bottom: 18px;
    }
}

@media (max-width: 767.98px) {
    .auth-login-page {
        padding: 20px 14px;
        align-items: center;
        overflow-y: auto;
    }

    .auth-login-panel {
        width: min(100%, 430px);
        max-height: none;
        padding: 32px 28px 30px;
        border-radius: 16px;
    }

    .auth-login-logo {
        height: 66px;
    }

    .auth-login-brand h1 {
        font-size: 24px;
        letter-spacing: 0.24em;
    }

    .auth-login-brand p {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .auth-orbit {
        left: -90%;
        right: -90%;
    }
}

@media (max-width: 575.98px) {
    .auth-login-page {
        padding: 14px 12px;
    }

    .auth-login-panel {
        padding: 26px 20px 24px;
        border-radius: 15px;
    }

    .auth-login-logo {
        height: 56px;
        margin-bottom: 10px;
    }

    .auth-login-brand {
        margin-bottom: 22px;
    }

    .auth-login-brand h1 {
        font-size: 21px;
        letter-spacing: 0.2em;
    }

    .auth-login-brand p {
        font-size: 9px;
        line-height: 1.55;
        letter-spacing: 0.06em;
    }

    .auth-form-group {
        margin-bottom: 16px;
    }

    .auth-input-wrap {
        min-height: 46px;
        gap: 10px;
        padding: 0 12px;
    }

    .auth-input-wrap input {
        height: 44px;
        font-size: 14px;
    }

    .auth-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .auth-login-btn {
        min-height: 46px;
    }
}

/* Prototype theme alignment overrides */
.auth-login-page {
    font-family: "Montserrat", sans-serif;
}

.auth-login-panel {
    border-radius: 12px;
}

.auth-input-wrap,
.auth-login-btn,
.auth-home-link {
    border-radius: 6px;
}

.auth-login-btn {
    background: var(--color4);
    box-shadow: 0 14px 34px rgba(200, 16, 46, 0.28);
}

.auth-login-btn:hover {
    background: #a50d25;
    box-shadow: 0 24px 58px rgba(200, 16, 46, 0.34);
}
