:root {
    --auth-bg: #f5f7fa;
    --auth-card: rgba(255, 255, 255, 0.86);
    --auth-text: #1d1d1f;
    --auth-text-2: #6e6e73;
    --auth-accent: #007aff;
    --auth-accent-deep: #0051d5;
    --auth-border: rgba(0, 0, 0, 0.08);
    --auth-input-bg: rgba(245, 247, 250, 0.9);
    --auth-shadow: 0 20px 25px rgba(0, 0, 0, 0.08), 0 8px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.02);
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--auth-bg);
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--auth-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 247, 250, 0.35) 0%, rgba(255, 255, 255, 0.15) 100%);
    pointer-events: none;
    z-index: -1;
}

.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.auth-back {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 36px;
    padding: 0 14px 0 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.auth-back:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--auth-accent);
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 16px 24px;
}

.auth-card {
    width: 420px;
    max-width: 100%;
    padding: 32px 28px 24px;
    border-radius: 20px;
    background: var(--auth-card);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--auth-shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-head {
    margin-bottom: 24px;
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    color: var(--auth-accent);
    font-size: 26px;
    overflow: hidden;
}

.auth-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.auth-head h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .01em;
}

.auth-site {
    display: -webkit-box;
    margin: 0 auto;
    max-width: 320px;
    overflow: hidden;
    color: var(--auth-text-2);
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.auth-field {
    margin-bottom: 16px;
}

/* 标签只保留给读屏软件，视觉上由图标 + 占位提示代替 */
.auth-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 46px;
    border-radius: 12px;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input:focus-within {
    background: #fff;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.auth-input > i {
    padding: 0 10px 0 14px;
    color: var(--auth-text-2);
    font-size: 16px;
}

.auth-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-text);
    font-size: 15px;
}

.auth-input input::placeholder {
    color: #a1a1a6;
}

.auth-eye {
    height: 100%;
    padding: 0 14px;
    border: 0;
    background: none;
    color: var(--auth-text-2);
    cursor: pointer;
}

/* 规则提示只在输入时展开，平时不占高度 */
.auth-tip {
    display: none;
    margin-top: 6px;
    padding-left: 4px;
    font-size: 12px;
    color: var(--auth-text-2);
    line-height: 1.5;
}

.auth-field:focus-within .auth-tip {
    display: block;
}

.auth-code {
    display: flex;
    gap: 10px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    font-size: 13px;
}

.auth-row a,
.auth-switch a,
.auth-terms a {
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-row a:hover,
.auth-switch a:hover,
.auth-terms a:hover {
    text-decoration: underline;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-text-2);
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-accent);
}

.auth-terms {
    align-items: flex-start;
    margin: 4px 0 20px;
    font-size: 13px;
    line-height: 1.6;
}

.auth-terms input {
    flex-shrink: 0;
    margin-top: 3px;
}

.auth-btn {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-accent);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.auth-btn:hover {
    background: var(--auth-accent-deep);
}

.auth-btn:active {
    transform: scale(.98);
}

.auth-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.auth-btn-ghost {
    flex-shrink: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--auth-accent);
    border-radius: 12px;
    background: transparent;
    color: var(--auth-accent);
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.auth-btn-ghost:disabled {
    opacity: .6;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--auth-text-2);
}

.auth-footer {
    padding: 0 16px 16px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.auth-footer span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #3a3a3c;
}

.auth-footer a {
    color: #3a3a3c;
}

@media (max-width: 575.98px) {
    .auth-back {
        top: 12px;
        left: 12px;
    }

    .auth-main {
        padding: 60px 16px 16px;
    }

    .auth-card {
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .auth-head h1 {
        font-size: 22px;
    }
}
