﻿:root {
    --bg0: #070b14;
    --bg1: #0b1220;
    --card: rgba(255,255,255,.06);
    --stroke: rgba(255,255,255,.12);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,.72);
    --muted2: rgba(234,240,255,.52);
    --brand: #7c5cff;
    --brand2: #30d5c8;
    --good: #37d67a;
    --danger: #ff5c7a;
    --shadow: 0 18px 40px rgba(0,0,0,.45);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    height: 100vh; /* 固定一屏 */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 🚨关键：干掉滚动条 */

    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC","Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(900px 520px at 18% -10%, rgba(124,92,255,.32), transparent 60%), radial-gradient(900px 520px at 88% 8%, rgba(48,213,200,.18), transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg1));
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    flex: 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    text-align: center;
    margin-bottom: 18px;
}

.logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(124,92,255,.28), rgba(48,213,200,.16));
    box-shadow: 0 16px 34px rgba(0,0,0,.35);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.logo svg {
    width: 28px;
    height: 28px;
    opacity: .96;
}

.brand h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: .3px;
}

.brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.card {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-inner {
    padding: 18px 16px 16px;
}

.field {
    margin-top: 12px;
}

label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(234,240,255,.82);
    font-size: 13px;
}

.input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
}

.input:focus-within {
    border-color: rgba(124,92,255,.6);
    box-shadow: 0 0 0 3px rgba(124,92,255,.12);
}

.input svg {
    width: 18px;
    height: 18px;
    opacity: .82;
    flex: 0 0 auto;
}

.input input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.input input::placeholder {
    color: rgba(234,240,255,.42);
}

.small-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.remember-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.remember-wrap input {
    accent-color: var(--brand);
}

.link {
    color: rgba(234,240,255,.88);
    text-decoration: underline;
    text-decoration-color: rgba(234,240,255,.26);
    text-underline-offset: 3px;
}

.error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,92,122,.28);
    background: rgba(255,92,122,.10);
    color: rgba(255,220,228,.95);
    font-size: 12.5px;
    display: none;
    line-height: 1.55;
}

.ok {
    border-color: rgba(55,214,122,.30);
    background: rgba(55,214,122,.10);
    color: rgba(220,255,235,.95);
}

.submit-field {
    margin-top: 14px;
}

.btn {
    width: 100%;
    height: 46px;
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 900;
    letter-spacing: .2px;
    color: #fff;
    background: linear-gradient(135deg, #ff4d4f, #ff7a45); /* 红橙渐变 */
    box-shadow: 0 12px 28px rgba(255,77,79,.35);
    transition: all .15s ease;
}
.btn:active {
    transform: scale(.97);
    box-shadow: 0 6px 16px rgba(255,77,79,.4);
}
.btn:hover {
    filter: brightness(1.05);
}
.btn[disabled] {
    opacity: .7;
    cursor: not-allowed;
}

.row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.dual-actions .btn,
.dual-actions .btn2 {
    flex: 1;
}
.btn2 {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(234,240,255,.75);
}
.login-footer {
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom);
    text-align: center;
}

.login-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.login-footer .footer-links a {
    color: rgba(234,240,255,.6);
}

.login-footer .sep {
    opacity: .3;
}

.login-footer .footer-note {
    margin-top: 6px;
    font-size: 12px;
    opacity: .8;
}