/* ===== 登录页 - 飞书风格 ===== */
#page-login {
    background: linear-gradient(180deg, #DDE9FB 0%, #EEF4FC 35%, #F5F6F7 100%);
}

#page-login .page-scroll {
    position: relative;
    overflow: hidden;
}

/* 顶部装饰光斑 */
.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    overflow: hidden;
    pointer-events: none;
}

.login-bg::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(30, 111, 217, 0.20) 0%, transparent 65%);
    border-radius: 50%;
}

.login-bg::after {
    content: '';
    position: absolute;
    top: 100px;
    left: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(91, 164, 229, 0.16) 0%, transparent 65%);
    border-radius: 50%;
}

.login-wave { display: none; }

.login-content {
    position: relative;
    z-index: 10;
    padding: 50px 13px 20px;
    display: flex;
    flex-direction: column;
}

/* 产品展示区 */
.login-header {
    text-align: center;
    margin-bottom: 18px;
    animation: fadeIn 0.5s ease;
}

.product-showcase {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-showcase::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 28px;
    background: radial-gradient(ellipse, rgba(30, 111, 217, 0.26) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(6px);
}

.product-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 14px 28px rgba(30, 111, 217, 0.20));
    animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-3);
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* 表单 */
.login-form {
    animation: slideUp 0.5s ease 0.1s both;
}

.input-group {
    position: relative;
    margin-bottom: 12px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.input-icon svg {
    stroke: var(--text-3);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-8);
    font-size: 14px;
    font-weight: 400;
    background: white;
    color: var(--text-1);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.login-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.12);
}

.login-input::placeholder {
    color: var(--text-3);
}

.register-select {
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-2);
}

.register-select:invalid {
    color: var(--text-3);
}

/* 隐藏 Windows / Edge 在密码框输入后自动出现的黑色眼睛按钮 */
.login-input[type="password"]::-ms-reveal,
.login-input[type="password"]::-ms-clear {
    display: none;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: var(--radius-6);
    transition: background 0.15s;
    z-index: 2;
}

.toggle-password:hover { background: var(--bg-hover); }
.password-eye-icon {
    stroke: #A8B0BC !important;
    fill: none !important;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-eye-icon path,
.password-eye-icon circle {
    stroke: #A8B0BC !important;
    fill: none !important;
}

.toggle-password .eye-closed {
    display: none;
}

.toggle-password.is-visible .eye-open {
    display: none;
}

.toggle-password.is-visible .eye-closed {
    display: block;
}

.register-login-link {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
}

.register-login-link a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 14px;
}

.remember-me {
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
}

.remember-me input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--brand-primary);
    border-radius: 3px;
}

.forgot-password {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    font-weight: 400;
}

.forgot-password:active {
    color: var(--text-2);
}

.reset-result {
    display: none;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: var(--radius-12);
    background: #EFF6FF;
    border: 1px solid rgba(30, 111, 217, 0.12);
}

.reset-result.show {
    display: block;
}

.reset-result-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.reset-result-text {
    font-size: 14px;
    color: var(--text-1);
    margin-bottom: 4px;
}

.reset-result-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-3);
}

/* 主按钮 - 飞书蓝填充 */
.btn-login {
    width: 100%;
    height: 46px;
    background: var(--brand-primary);
    border: none;
    border-radius: var(--radius-8);
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(30, 111, 217, 0.20);
}

.btn-login:hover { background: var(--brand-hover); }
.btn-login:active { background: var(--brand-active); transform: translateY(1px); }

/* 次按钮 - 白底蓝边 */
.btn-register {
    width: 100%;
    height: 46px;
    background: white;
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-8);
    color: var(--brand-primary);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    margin-top: 10px;
    transition: background 0.15s;
    font-family: inherit;
}

.btn-register:hover { background: var(--brand-bg-3); }

.login-divider {
    display: flex;
    align-items: center;
    margin: 14px 0 10px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-1);
}

.login-divider span {
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 400;
}

.other-login {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.btn-bluetooth-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: white;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-8);
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.btn-bluetooth-login:hover { background: var(--brand-bg-3); }

.btn-bluetooth-login svg {
    fill: var(--brand-primary);
    width: 18px;
    height: 18px;
}

.btn-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    border-radius: var(--radius-8);
    transition: color 0.15s;
}

.btn-guest:hover { color: var(--brand-primary); }
.btn-guest svg { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
