﻿.login-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--gf-text-strong);
    padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #f5f5f0 0%, #f9f9fb 22%, #f9f9fb 100%);
}

.login-page__hero-bg {
    position: absolute;
    inset: 0 0 auto;
    height: 430px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 6%, rgba(120, 200, 210, 0.34), transparent 54%), radial-gradient(circle at 86% 0%, rgba(255, 204, 0, 0.20), transparent 58%), radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.56), transparent 44%), linear-gradient(180deg, rgba(245, 247, 248, 0) 0%, rgba(245, 247, 248, 0.28) 52%, rgba(249, 249, 251, 0.96) 100%);
}

.login-page::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 272px;
    height: 150px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(249, 249, 251, 0) 0%, rgba(249, 249, 251, 0.68) 56%, rgba(249, 249, 251, 1) 100%);
}

.login-topbar {
    position: relative;
    z-index: 2;
    height: 54px;
    display: flex;
    align-items: flex-start;
    padding: 12px var(--gf-space-4) 0;
}

.login-topbar__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: var(--gf-radius-pill);
    color: rgba(28, 28, 30, 0.72);
    background: rgba(255, 255, 255, 0.18);
    transition: transform var(--gf-duration-fast) var(--gf-ease-default), background-color var(--gf-duration-fast) var(--gf-ease-default), color var(--gf-duration-fast) var(--gf-ease-default);
}

    .login-topbar__back svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .login-topbar__back:active {
        transform: scale(0.94);
        background: rgba(255, 255, 255, 0.42);
        color: var(--gf-text-strong);
    }

.login-page__content {
    position: relative;
    z-index: 1;
    padding: 10px var(--gf-space-4) 0;
}

.login-hero {
    margin-top: 8px;
}

.login-hero__brand {
    display: flex;
    align-items: center;
    min-height: 50px;
    gap: 11px;
}

.login-hero__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 8px 18px rgba(15, 23, 42, 0.018);
}

    .login-hero__logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.login-hero__brand-body {
    min-width: 0;
    flex: 1;
}

.login-hero__brand-name {
    font-size: var(--gf-font-size-lg);
    line-height: 1.15;
    font-weight: var(--gf-font-weight-bold);
    color: #111213;
    letter-spacing: -0.015em;
}

.login-hero__brand-sub {
    margin-top: 2px;
    font-size: var(--gf-font-size-sm);
    line-height: 1.15;
    color: rgba(60, 60, 67, 0.48);
    font-weight: var(--gf-font-weight-medium);
}

.login-hero__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 13px;
    border-radius: var(--gf-radius-pill);
    white-space: nowrap;
    background: rgba(255, 204, 0, 0.18);
    color: #8a6a00;
    font-size: var(--gf-font-size-xs);
    font-weight: var(--gf-font-weight-semibold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 4px 12px rgba(255, 204, 0, 0.06);
}

.login-hero__title {
    margin: 21px 0 8px;
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 720;
    color: rgba(0, 0, 0, 0.92);
}

.login-hero__desc {
    margin: 0;
    font-size: var(--gf-font-size-md);
    line-height: 1.42;
    color: rgba(60, 60, 67, 0.56);
    font-weight: var(--gf-font-weight-medium);
}

.login-benefit {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    padding: 17px 20px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.32)), radial-gradient(circle at 86% 18%, rgba(255, 204, 0, 0.12), transparent 44%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(18px) saturate(155%);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.032), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.login-benefit__title {
    font-size: var(--gf-font-size-md);
    line-height: 1.2;
    font-weight: var(--gf-font-weight-semibold);
    color: rgba(28, 28, 30, 0.82);
}

.login-benefit__items {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 13px;
}

    .login-benefit__items span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: rgba(60, 60, 67, 0.66);
        font-size: var(--gf-font-size-sm);
        line-height: 1.2;
        font-weight: var(--gf-font-weight-medium);
        white-space: nowrap;
    }

        .login-benefit__items span::before {
            content: "";
            width: 14px;
            height: 14px;
            border-radius: 50%;
            flex-shrink: 0;
            background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0 28%, transparent 30%), var(--gf-brand);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 3px 8px rgba(255, 204, 0, 0.16);
        }

.login-card {
    margin-top: 26px;
    padding: 22px 24px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

    .login-card.is-shaking {
        animation: loginShake .34s ease;
    }

@keyframes loginShake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-7px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(3px);
    }
}

.login-card__title {
    margin-bottom: 18px;
    font-size: var(--gf-font-size-xl);
    line-height: 1.25;
    font-weight: var(--gf-font-weight-semibold);
    letter-spacing: -0.018em;
    color: rgba(17, 18, 19, 0.92);
}

.login-form {
    margin: 0;
}

.login-form__row {
    display: block;
    padding: 10px 0 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.035);
}

    .login-form__row + .login-form__row {
        padding-top: 16px;
    }

.login-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--gf-font-size-sm);
    line-height: 1.15;
    color: rgba(60, 60, 67, 0.42);
    font-weight: var(--gf-font-weight-medium);
}

.login-form__input {
    display: block;
    width: 100%;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(28, 28, 30, 0.88);
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -0.02em;
    caret-color: var(--gf-brand-deep);
}

.login-form__row--code .login-form__input {
    font-size: 18px;
}

.login-form__input::placeholder {
    color: rgba(60, 60, 67, 0.36);
    font-weight: var(--gf-font-weight-medium);
}

.login-form__input:focus::placeholder {
    color: rgba(60, 60, 67, 0.26);
}

.login-form__row--code .login-form__code-line {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-form__row--code .login-form__input {
    min-width: 0;
    flex: 1;
}

.login-form__code-button {
    position: relative;
    flex-shrink: 0;
    min-width: 88px;
    height: 28px;
    padding-left: 14px;
    color: rgba(201, 153, 0, 0.9);
    font-size: var(--gf-font-size-md);
    line-height: 28px;
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity var(--gf-duration-fast) var(--gf-ease-default), transform var(--gf-duration-fast) var(--gf-ease-default), color var(--gf-duration-fast) var(--gf-ease-default);
}

    .login-form__code-button::before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        bottom: 6px;
        width: 1px;
        background: rgba(0, 0, 0, 0.055);
    }

    .login-form__code-button:active {
        transform: scale(0.97);
        color: #a98200;
    }

    .login-form__code-button.is-disabled,
    .login-form__code-button:disabled {
        color: rgba(60, 60, 67, 0.36);
        opacity: 1;
    }

.login-form__submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 22px;
    border-radius: var(--gf-radius-pill);
    background: var(--gf-brand);
    color: var(--gf-text-strong);
    font-size: var(--gf-font-size-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    transition: transform var(--gf-duration-fast) var(--gf-ease-default), box-shadow var(--gf-duration-fast) var(--gf-ease-default), background-color var(--gf-duration-fast) var(--gf-ease-default), opacity var(--gf-duration-fast) var(--gf-ease-default);
}

    .login-form__submit:active {
        transform: scale(0.97);
        background: var(--gf-brand-strong);
        box-shadow: 0 3px 8px rgba(255, 204, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    }

    .login-form__submit:disabled {
        background: rgba(255, 204, 0, 0.34);
        color: rgba(28, 28, 30, 0.44);
        box-shadow: none;
        transform: none;
        cursor: not-allowed;
        filter: saturate(0.8);
    }

        .login-form__submit:disabled:active {
            transform: none;
        }

.login-form__submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(28, 28, 30, 0.16);
    border-top-color: rgba(28, 28, 30, 0.58);
    animation: loginSpin .8s linear infinite;
}

.login-form__submit.is-loading .login-form__submit-text {
    display: none;
}

.login-form__submit.is-loading .login-form__submit-spinner {
    display: block;
}

@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}

.login-extra {
    margin-top: 22px;
}

.login-extra__wechat {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.024), inset 0 1px 0 rgba(255, 255, 255, 0.54);
    color: rgba(28, 28, 30, 0.86);
    font-size: var(--gf-font-size-md);
    font-weight: var(--gf-font-weight-semibold);
    transition: transform var(--gf-duration-fast) var(--gf-ease-default), background-color var(--gf-duration-fast) var(--gf-ease-default), box-shadow var(--gf-duration-fast) var(--gf-ease-default);
}

    .login-extra__wechat:active {
        transform: scale(0.985);
        background: rgba(255, 255, 255, 0.58);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 4px 12px rgba(15, 23, 42, 0.02);
    }

.login-extra__wechat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    color: #18b83f;
}

    .login-extra__wechat-icon svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

.login-extra__wechat-text {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.login-extra__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(60, 60, 67, 0.38);
}

    .login-extra__arrow svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.login-agreement {
    margin: 22px 0 0;
    padding: 0 8px;
    text-align: center;
    color: rgba(60, 60, 67, 0.44);
    font-size: var(--gf-font-size-xs);
    line-height: 1.7;
    font-weight: var(--gf-font-weight-medium);
}

    .login-agreement a {
        color: #b88a00;
        font-weight: var(--gf-font-weight-medium-plus);
    }

.login-toast {
    position: fixed;
    left: 50%;
    bottom: calc(34px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    max-width: calc(100vw - 48px);
    transform: translateX(-50%) translateY(12px);
    padding: 9px 14px;
    border-radius: var(--gf-radius-pill);
    background: rgba(28, 28, 30, 0.86);
    color: #fff;
    font-size: var(--gf-font-size-sm);
    line-height: 1.3;
    font-weight: var(--gf-font-weight-medium);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition: opacity .18s ease, transform .18s ease;
}

    .login-toast.is-visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

@media (max-width: 360px) {
    .login-page__content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .login-hero__title {
        font-size: 26px;
    }

    .login-card {
        padding: 20px 20px 22px;
    }

    .login-benefit__items {
        gap: 10px;
    }

        .login-benefit__items span {
            font-size: var(--gf-font-size-xs);
        }
}
