/* =========================================================
   KiiChain Pay — 登录/注册样式
   1:1 复刻 pay.kiichain.io 登录界面
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
}
.auth-glow-1 {
    width: 600px; height: 600px;
    background: rgba(99,102,241,0.2);
    top: -200px; left: -100px;
}
.auth-glow-2 {
    width: 500px; height: 500px;
    background: rgba(139,92,246,0.15);
    bottom: -200px; right: -100px;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-card {
    padding: 40px 36px;
    background: rgba(15,15,36,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo img {
    display: inline-block;
    height: 32px;
    width: auto;
}

.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 28px;
}

/* 提示 */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}
.auth-alert-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
}
.auth-alert-success {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34d399;
}

/* 表单 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.auth-field input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: all .2s;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.auth-field input::placeholder {
    color: var(--text-muted);
}

/* 密码框 */
.auth-password-wrap {
    position: relative;
}
.auth-password-wrap input {
    padding-right: 48px;
}
.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}
.auth-password-toggle:hover {
    color: var(--text);
}

/* 按钮 */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s;
    width: 100%;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.5);
}
.auth-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* 分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* 第三方登录 */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-btn-social {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
}
.auth-btn-social:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(99,102,241,0.4);
}

/* 底部 */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.auth-link:hover {
    opacity: .8;
    text-decoration: underline;
}

.auth-switch {
    color: var(--text-dim);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
    }
    .auth-title {
        font-size: 22px;
    }
}