/**
 * auth.css
 * 登录 / 注册 / 找回密码页（在 theme.css 之后加载）
 */

.auth-page {
    position: relative;
    overflow-x: hidden;
}

.auth-page__overlay {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100%;
    max-width: var(--phone-width);
    height: 100%;
    transform: translateX(-50%);
    background: var(--theme-overlay-auth);
    pointer-events: none;
}

.auth-page__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 16px 22px 28px;
}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 36px;
    margin-bottom: 8px;
}

.auth-top__placeholder {
    width: 72px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    color: var(--theme-text-light);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.auth-back i {
    margin-right: 2px;
    font-size: 18px;
}

.auth-page .messageEng {
    position: static;
    width: auto;
    min-width: 96px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.auth-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(88vw, 320px);
    min-height: 88px;
    margin: 24px auto 36px;
    padding: 10px 14px;
    background: var(--theme-bg-color, #1b5e20);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.auth-logo-wrap img {
    width: 100%;
    max-height: 72px;
    height: auto;
    object-fit: contain;
}

.auth-form {
    width: 100%;
    flex: 1;
}

/* 覆盖 style.css 登录表单默认样式 */
.auth-page .login-head,
.auth-page .langChange {
    display: none;
}

.auth-page .login-main {
    min-height: 100vh;
}

.auth-page .login-box {
    min-height: auto;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.auth-page .login-message {
    display: none;
}

.auth-page .login-item {
    display: flex;
    align-items: center;
    height: 50px;
    margin-top: 16px;
    padding: 0 16px;
    border: none;
    border-radius: 50px;
    background: var(--theme-card-bg);
    box-shadow: var(--theme-card-shadow);
}

.auth-page .login-item:first-child {
    margin-top: 0;
}

.auth-page .login-item i {
    margin-right: 8px;
    color: var(--theme-accent);
    font-size: 18px;
}

.auth-page .login-item span {
    margin-right: 8px;
    color: var(--theme-accent);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.auth-page .login-item input {
    height: 48px;
    color: var(--theme-text-dark);
    font-size: 14px;
    background: transparent;
}

.auth-page .login-item input::placeholder {
    color: var(--theme-text-muted);
}

.auth-page .login-item input[readonly] {
    color: #666;
}

.auth-page .login-send {
    position: absolute;
    right: 8px;
    padding: 7px 14px;
    border: none;
    border-radius: 20px;
    background: var(--theme-primary);
    color: var(--theme-text-light);
    font-size: 13px;
    font-weight: 600;
}

.auth-page .login-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-page .login-change {
    margin-top: 28px;
}

.auth-page .login-change button,
.auth-page .auth-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--theme-btn-radius);
    background: var(--theme-primary);
    color: var(--theme-text-light);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-page .login-link {
    margin-top: 18px;
    padding: 0 4px;
}

.auth-page .login-link a {
    color: var(--theme-text-light);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.auth-page .login-link a:hover {
    text-decoration: underline;
}

.auth-page .tips {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 18px;
}

.auth-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 32px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    letter-spacing: 0.3px;
    text-align: center;
}
