/* ========================================
   登录 / 注册页样式
   ======================================== */

.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page-gradient, #0b2f63);
}

.auth-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---------- 顶部 ---------- */
.auth-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, .18));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .06);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hero-text, #f6fbff);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.auth-logo svg {
    width: 26px;
    height: 26px;
    color: #4ea8ff;
}

.auth-header-link {
    color: var(--hero-text-muted, rgba(230, 244, 255, .82));
    text-decoration: none;
    font-size: 13px;
    transition: color .15s;
}
.auth-header-link:hover {
    color: #fff;
}

/* ---------- 主区 ---------- */
.auth-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 380px);
    gap: 48px;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ---------- 卡片 ---------- */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow:
        0 20px 50px rgba(4, 16, 38, .35),
        0 6px 16px rgba(4, 16, 38, .22);
    border: 1px solid rgba(255, 255, 255, .6);
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-1, #141414);
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 13px;
    color: var(--text-2, #595959);
    margin-bottom: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 12px;
    color: var(--text-2, #595959);
    font-weight: 500;
}

.auth-field input {
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    border: 1px solid var(--border-strong, #d9d9d9);
    border-radius: 8px;
    background: #fff;
    color: var(--text-1, #141424);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    width: 100%;
}
.auth-field input::placeholder {
    color: #bfbfbf;
}
.auth-field input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .15);
}

.auth-error {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    color: #cf1322;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
}

.auth-submit {
    height: 44px;
    margin-top: 6px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .1s, box-shadow .15s, opacity .15s;
    position: relative;
}
.auth-submit:hover {
    box-shadow: 0 6px 16px rgba(22, 119, 255, .35);
}
.auth-submit:active {
    transform: translateY(1px);
}
.auth-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.auth-submit-spin {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .8s linear infinite;
}
.auth-submit.is-loading .auth-submit-spin { display: block; }
.auth-submit.is-loading .auth-submit-text  { opacity: .85; }

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--text-2, #595959);
}

.auth-link {
    color: #1677ff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}
.auth-link:hover {
    text-decoration: underline;
}

/* ---------- 右侧装饰 ---------- */
.auth-side {
    color: var(--hero-text, #f6fbff);
}

.auth-side-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #a3d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-side-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--hero-text-muted, rgba(230, 244, 255, .82));
    margin-bottom: 24px;
}

.auth-side-list,
.auth-side-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-side-list li,
.auth-side-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(230, 244, 255, .88);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-blue   { background: #4ea8ff; box-shadow: 0 0 8px rgba(78, 168, 255, .7); }
.dot-green  { background: #52c41a; box-shadow: 0 0 8px rgba(82, 196, 26, .7); }
.dot-orange { background: #ffa940; box-shadow: 0 0 8px rgba(255, 169, 64, .7); }

.auth-side-steps li b {
    color: #4ea8ff;
    margin-right: 4px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .auth-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }
    .auth-side {
        order: -1;
        text-align: center;
    }
    .auth-side-title { font-size: 22px; }
    .auth-side-list,
    .auth-side-steps {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 22px 22px; }
    .auth-title { font-size: 20px; }
}