* {

    box-sizing: border-box;
}

[hidden] {

    display: none !important;
}

html,
body {

    min-height: 100%;
}

body {

    margin: 0;

    color: #101014;

    font-family: Arial, Helvetica, sans-serif;
}

button,
input {

    font: inherit;
}

button {

    border: 0;

    cursor: pointer;
}

a {

    color: #1b6ff2;

    text-decoration: none;
}

.auth-page {

    min-height: 100vh;

    overflow-x: hidden;

    overflow-y: auto;

    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .96) 0 14%, rgba(232, 238, 255, .78) 30%, transparent 46%),
        radial-gradient(circle at 35% 37%, rgba(157, 80, 255, .75), transparent 32%),
        linear-gradient(135deg, #9c55ef 0%, #5440c7 32%, #1155cf 67%, #006fd7 100%);

    background-size: 160% 160%;

    animation: gradientFlow 12s ease-in-out infinite alternate;
}

.auth-page::before,
.auth-page::after {

    content: "";

    position: fixed;

    inset: auto;

    pointer-events: none;

    border: 2px solid rgba(255, 255, 255, .22);

    border-radius: 50%;

    animation: floatRing 9s ease-in-out infinite alternate;
}

.auth-page::before {

    width: 520px;

    height: 520px;

    left: -210px;

    top: -275px;
}

.auth-page::after {

    width: 560px;

    height: 560px;

    right: -190px;

    bottom: -230px;

    animation-duration: 12s;
}

.auth-shell {

    min-height: 100vh;

    display: grid;

    grid-template-columns: minmax(620px, 1fr) 500px;

    align-items: center;

    gap: 44px;

    padding: 28px 9vw 28px 5vw;

    position: relative;
}

.brand-panel {

    position: relative;

    min-height: 520px;

    display: grid;

    grid-template-columns: 220px max-content;

    align-items: center;

    justify-content: center;

    gap: 34px;

    color: #fff;

    animation: slideInLeft .45s ease both;
}

.brand-mark-large,
.brand-mark-small {

    position: relative;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(135deg, #77d4ff 0%, #7e76ff 54%, #a558ff 100%) padding-box;

    border: var(--outer-ring) solid #846fff;

    box-shadow: inset 0 0 0 var(--inner-ring) #fff;
}

.brand-mark-large {

    --outer-ring: 6px;

    --inner-ring: 6px;

    --node-size: 25px;

    --line-width: 7px;

    --line-length: 44px;

    width: 176px;

    height: 176px;

    justify-self: center;

    box-shadow: inset 0 0 0 var(--inner-ring) #fff;

    animation:
        logoRollIn 1.05s cubic-bezier(.2, .85, .28, 1.12) both,
        logoPulse 3.5s ease-in-out 1.1s infinite alternate;
}

.brand-mark-small {

    --outer-ring: 3px;

    --inner-ring: 3px;

    --node-size: 11px;

    --line-width: 4px;

    --line-length: 20px;

    width: 68px;

    height: 68px;
}

.auth-logo .brand-mark-small {

    --outer-ring: 3px;

    --inner-ring: 3px;

    --node-size: 10px;

    --line-width: 4px;

    --line-length: 18px;

    flex: 0 0 auto;

    box-shadow: inset 0 0 0 var(--inner-ring) #fff, 0 0 0 3px #8063ff;
}

.brand-mark-large span,
.brand-mark-small span {

    position: absolute;

    left: 50%;

    top: 58%;

    width: var(--node-size);

    height: var(--node-size);

    border-radius: 50%;

    background: #fff;

    transform: translate(-50%, -50%);

    z-index: 2;
}

.brand-mark-large::before,
.brand-mark-large::after,
.brand-mark-small::before,
.brand-mark-small::after {

    content: "";

    position: absolute;

    left: 50%;

    top: 58%;

    width: var(--line-length);

    height: var(--line-width);

    border-radius: 999px;

    background: #fff;

    transform-origin: left center;

    z-index: 1;
}

.brand-mark-large::before,
.brand-mark-small::before {

    transform: rotate(-132deg);
}

.brand-mark-large::after,
.brand-mark-small::after {

    transform: rotate(-48deg);
}

.brand-mark-large span::before,
.brand-mark-large span::after,
.brand-mark-small span::before,
.brand-mark-small span::after {

    content: "";

    position: absolute;

    width: var(--node-size);

    height: var(--node-size);

    border-radius: 50%;

    background: #fff;

    top: -118%;
}

.brand-mark-large span::before,
.brand-mark-small span::before {

    left: -160%;
}

.brand-mark-large span::after,
.brand-mark-small span::after {

    right: -160%;
}

.brand-copy h1,
.auth-logo strong {

    margin: 0;

    background: linear-gradient(90deg, #5fd3ff, #b85df8);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}

.brand-copy h1 {

    font-size: 72px;

    line-height: 1;

    text-align: left;

    white-space: nowrap;

    overflow: hidden;

    animation:
        wordReveal .9s ease .35s both,
        shimmerText 4s ease-in-out 1.25s infinite alternate;
}

.brand-copy p {

    margin: 22px 0 0;

    font-size: 27px;

    line-height: 1.35;
}

.brand-line {

    width: 144px;

    height: 5px;

    margin-top: 26px;

    background: linear-gradient(90deg, #5fd3ff, #b85df8);

    animation: lineGlow 2.8s ease-in-out infinite alternate;
}

.auth-card {

    position: relative;

    z-index: 1;

    width: 100%;

    padding: 36px 45px 34px;

    border-radius: 30px;

    background: rgba(255, 255, 255, .96);

    box-shadow: 0 32px 70px rgba(21, 35, 84, .24);

    animation: cardEnter .75s ease both, cardFloat 5s ease-in-out infinite alternate;
}

.auth-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    margin-bottom: 26px;
}

.auth-logo strong {

    font-size: 36px;

    line-height: 1;
}

.auth-card h2 {

    margin: 0 0 24px 62px;

    font-size: 40px;

    line-height: 1.12;
}

.auth-form {

    display: grid;

    gap: 16px;
}

.auth-form input {

    width: 100%;

    min-height: 54px;

    padding: 0 22px;

    border: 2px solid #cdd3df;

    border-radius: 12px;

    outline: 0;

    background: #fff;

    color: #4e5363;

    font-size: 19px;
}

.auth-form input:focus {

    border-color: #466fe4;

    box-shadow: 0 0 0 4px rgba(70, 111, 228, .14);
}

.auth-form input {

    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-form input:focus {

    transform: translateY(-2px);
}

.password-field {

    position: relative;

    display: block;
}

.password-field input {

    padding-left: 54px;

    padding-right: 54px;
}

.lock-icon {

    position: absolute;

    left: 22px;

    top: 50%;

    width: 16px;

    height: 14px;

    border: 2px solid #777b89;

    border-radius: 3px;

    transform: translateY(-35%);
}

.lock-icon::before {

    content: "";

    position: absolute;

    left: 2px;

    top: -12px;

    width: 8px;

    height: 10px;

    border: 2px solid #777b89;

    border-bottom: 0;

    border-radius: 8px 8px 0 0;
}

.toggle-password {

    position: absolute;

    right: 20px;

    top: 50%;

    width: 24px;

    height: 24px;

    background: transparent;

    transform: translateY(-50%);
}

.toggle-password::before {

    content: "";

    position: absolute;

    left: 2px;

    top: 7px;

    width: 18px;

    height: 10px;

    border: 2px solid #656a78;

    border-radius: 50%;
}

.toggle-password::after {

    content: "";

    position: absolute;

    left: 2px;

    top: 11px;

    width: 22px;

    height: 2px;

    border-radius: 999px;

    background: #656a78;

    transform: rotate(45deg);
}

.password-label {

    margin-top: -8px;

    color: #575b6a;

    font-size: 14px;
}

.primary-auth-button {

    min-height: 54px;

    border-radius: 10px;

    background: #265be3;

    color: #fff;

    font-size: 23px;

    font-weight: 800;

    box-shadow: 0 12px 22px rgba(36, 82, 212, .28);

    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-auth-button:hover {

    transform: translateY(-3px);

    background: #1f55dd;

    box-shadow: 0 18px 28px rgba(36, 82, 212, .34);
}

.auth-divider {

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 16px;

    margin: 24px 18px 24px;

    color: #565b69;

    font-size: 18px;
}

.auth-divider::before,
.auth-divider::after {

    content: "";

    height: 2px;

    background: #e0e2ea;
}

.social-row {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    padding: 0 18px;
}

.social-button {

    height: 58px;

    border-radius: 12px;

    background: #fff;

    display: grid;

    place-items: center;

    box-shadow: 0 10px 18px rgba(20, 26, 54, .16);

    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;

    border: 1px solid #e4e7ef;
}

.social-button:hover {

    transform: translateY(-4px);

    box-shadow: 0 16px 24px rgba(20, 26, 54, .2);

    border-color: #cfd5e4;
}

.social-button::before {

    content: "";

    width: 30px;

    height: 30px;

    display: block;

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;
}

.google::before {

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24s.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
}

.github::before {

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 98 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23181717' fill-rule='evenodd' clip-rule='evenodd' d='M49 0C21.94 0 0 22 0 49.18c0 21.75 14.04 40.2 33.53 46.7 2.45.45 3.35-1.07 3.35-2.38 0-1.17-.04-4.27-.07-8.38-13.64 2.97-16.52-6.6-16.52-6.6-2.23-5.69-5.45-7.2-5.45-7.2-4.46-3.06.34-3 .34-3 4.93.35 7.52 5.08 7.52 5.08 4.38 7.53 11.5 5.36 14.3 4.1.45-3.18 1.72-5.36 3.12-6.59-10.89-1.24-22.34-5.46-22.34-24.3 0-5.37 1.91-9.76 5.05-13.2-.51-1.24-2.19-6.25.48-13.02 0 0 4.12-1.32 13.48 5.04A46.88 46.88 0 0 1 49 23.78c4.16.02 8.35.56 12.27 1.65 9.36-6.36 13.47-5.04 13.47-5.04 2.67 6.77.99 11.78.49 13.02 3.14 3.44 5.04 7.83 5.04 13.2 0 18.89-11.47 23.04-22.4 24.25 1.76 1.52 3.33 4.52 3.33 9.12 0 6.59-.06 11.9-.06 13.52 0 1.32.88 2.86 3.37 2.37C83.98 89.36 98 70.92 98 49.18 98 22 76.06 0 49 0z'/%3E%3C/svg%3E");
}

.auth-switch {

    margin: 24px 0 0;

    color: #4f5360;

    font-size: 20px;

    text-align: center;
}

.auth-message {

    min-height: 18px;

    margin: 18px 0 0;

    color: #245f2f;

    font-size: 15px;

    font-weight: 800;

    text-align: center;
}

.auth-message.error {

    color: #b42318;
}

.dot-field {

    position: absolute;

    width: 190px;

    height: 150px;

    opacity: .4;

    background-image: radial-gradient(circle, rgba(255, 255, 255, .75) 2px, transparent 3px);

    background-size: 27px 27px;

    animation: drift 8s ease-in-out infinite alternate;
}

.dot-field-left {

    left: -25px;

    bottom: -12px;
}

.dot-field-center {

    top: 8px;

    right: 40px;

    opacity: .22;
}

.orb {

    position: absolute;

    width: 92px;

    height: 92px;

    right: 56px;

    bottom: 42px;

    border: 2px solid rgba(255, 255, 255, .2);

    border-radius: 50%;

    animation: pulseOrb 4s ease-in-out infinite alternate;
}

.orb::after {

    content: "";

    position: absolute;

    width: 8px;

    height: 8px;

    left: 50%;

    top: 50%;

    border-radius: 50%;

    background: rgba(255, 255, 255, .7);

    transform: translate(-50%, -50%);
}

.orbit {

    position: absolute;

    pointer-events: none;

    border: 2px solid rgba(255, 255, 255, .16);

    border-radius: 50%;
}

.orbit-one {

    width: 330px;

    height: 330px;

    left: -74px;

    top: -92px;

    animation: orbitSpin 18s linear infinite;
}

.orbit-two {

    width: 420px;

    height: 420px;

    right: -160px;

    bottom: -120px;

    animation: orbitSpin 24s linear infinite reverse;
}

.orbit::after {

    content: "";

    position: absolute;

    width: 8px;

    height: 8px;

    left: 76%;

    top: 12%;

    border-radius: 50%;

    background: rgba(255, 255, 255, .75);

    box-shadow: 0 0 16px rgba(255, 255, 255, .8);
}

.login-page {

    display: block;
}

.login-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    padding-left: 58px;

    padding-right: 58px;

    text-align: center;
}

.login-card .auth-logo {

    margin-bottom: 24px;
}

.login-card .auth-logo strong {

    font-size: 32px;
}

.login-card h2 {

    width: 100%;

    margin: 0 0 26px;

    font-size: 34px;

    line-height: 1.08;

    text-align: center;

    letter-spacing: 0;
}

.login-form {

    width: 100%;

    gap: 16px;
}

.login-card .auth-divider,
.login-card .social-row {

    width: 100%;
}

.login-form input {

    min-height: 52px;

    font-size: 17px;

    font-weight: 700;
}

.login-form .primary-auth-button {

    font-size: 22px;
}

.forgot-link {

    display: inline-block;

    margin-top: 18px;

    color: #1c3555;

    font-size: 16px;

    font-weight: 700;
}

.login-switch {

    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;

    max-width: none;

    margin-top: 22px;

    font-size: 17px;

    line-height: 1.2;

    text-align: center;
}

.login-switch span,
.login-switch a {

    display: block;

    width: 100%;

    text-align: center;
}

@keyframes gradientFlow {

    from {

        background-position: 0% 40%;
    }

    to {

        background-position: 100% 60%;
    }
}

@keyframes floatRing {

    from {

        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    to {

        transform: translate3d(34px, 24px, 0) rotate(12deg);
    }
}

@keyframes drift {

    from {

        transform: translate3d(0, 0, 0);
    }

    to {

        transform: translate3d(18px, -12px, 0);
    }
}

@keyframes pulseOrb {

    from {

        transform: scale(.92);

        opacity: .55;
    }

    to {

        transform: scale(1.08);

        opacity: .9;
    }
}

@keyframes orbitSpin {

    to {

        transform: rotate(360deg);
    }
}

@keyframes logoRollIn {

    0% {

        opacity: 0;

        transform: translateX(-220px) rotate(-420deg) scale(.72);
    }

    72% {

        opacity: 1;

        transform: translateX(10px) rotate(18deg) scale(1.04);
    }

    100% {

        opacity: 1;

        transform: translateX(0) rotate(0deg) scale(1);
    }
}

@keyframes wordReveal {

    0% {

        opacity: 0;

        max-width: 0;

        filter: blur(8px);
    }

    100% {

        opacity: 1;

        max-width: 430px;

        filter: blur(0);
    }
}

@keyframes logoPulse {

    from {

        transform: translateY(0) scale(1);

        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }

    to {

        transform: translateY(-8px) scale(1.035);

        filter: drop-shadow(0 18px 26px rgba(67, 179, 255, .18));
    }
}

@keyframes shimmerText {

    from {

        filter: saturate(1);
    }

    to {

        filter: saturate(1.35) brightness(1.08);
    }
}

@keyframes lineGlow {

    from {

        width: 144px;

        opacity: .8;
    }

    to {

        width: 172px;

        opacity: 1;
    }
}

@keyframes cardEnter {

    from {

        opacity: 0;

        transform: translateX(28px) scale(.98);
    }

    to {

        opacity: 1;

        transform: translateX(0) scale(1);
    }
}

@keyframes cardFloat {

    from {

        translate: 0 0;
    }

    to {

        translate: 0 -10px;
    }
}

@keyframes slideInLeft {

    from {

        opacity: 0;

        transform: translateX(-30px);
    }

    to {

        opacity: 1;

        transform: translateX(0);
    }
}

@media (max-width: 1100px) {

    .auth-shell {

        grid-template-columns: 1fr;

        padding: 42px 24px;
    }

    .brand-panel {

        min-height: 280px;

        grid-template-columns: 130px 1fr;

        gap: 28px;
    }

    .brand-mark-large {

        width: 110px;

        height: 110px;

        box-shadow: 0 0 0 14px #fff;
    }

    .brand-copy h1 {

        font-size: 48px;
    }

    .brand-copy p {

        font-size: 22px;
    }

    .auth-card {

        max-width: 500px;

        margin: 0 auto;
    }
}

@media (max-width: 560px) {

    .auth-shell {

        padding: 24px 16px;
    }

    .brand-panel {

        grid-template-columns: 1fr;

        justify-items: center;

        text-align: center;
    }

    .brand-mark-large {

        justify-self: center;
    }

    .brand-copy h1 {

        font-size: 42px;
    }

    .auth-card {

        padding: 34px 22px 28px;

        border-radius: 22px;
    }

    .auth-card h2 {

        margin-left: 0;

        font-size: 32px;
    }

    .social-row {

        padding: 0;
    }
}

body.dark-theme.auth-page {

    color: #f4f6fb;

    background:
        radial-gradient(circle at 82% 18%, rgba(81, 112, 210, .22), transparent 36%),
        radial-gradient(circle at 35% 37%, rgba(124, 58, 237, .28), transparent 34%),
        linear-gradient(135deg, #111827 0%, #182238 42%, #172554 100%);
}

body.dark-theme .auth-card {

    background: rgba(31, 37, 52, .96);

    color: #f4f6fb;

    border: 1px solid rgba(255, 255, 255, .12);

    box-shadow: 0 32px 70px rgba(0, 0, 0, .34);
}

body.dark-theme .auth-card h1,
body.dark-theme .auth-card h2,
body.dark-theme .auth-logo strong {

    color: #f4f6fb;
}

body.dark-theme .auth-form input {

    color: #f4f6fb;

    background: rgba(20, 25, 36, .88);

    border-color: rgba(255, 255, 255, .14);
}

body.dark-theme .auth-form input::placeholder {

    color: #9aa6ba;
}

body.dark-theme .auth-form input:focus {

    border-color: #7fa0ff;

    box-shadow: 0 0 0 4px rgba(127, 160, 255, .18);
}

body.dark-theme .auth-card p,
body.dark-theme .auth-card small,
body.dark-theme .form-help,
body.dark-theme .auth-switch {

    color: #b7bfce;
}
