/* ============================================================
   登录页样式（Auth / Login）
   ============================================================ */

.auth-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 24px;
    background: #f5f6f8;
}

.auth-card {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    overflow: hidden;
}

.auth-card-head {
    padding: 40px 40px 0;
    text-align: center;
}

.auth-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 6px;
    background: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.auth-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 13px;
    color: #8a909a;
    margin: 0 0 20px;
}

/* 切换 Tab */
.auth-tabs {
    display: flex;
    padding: 0 60px;
    border-bottom: 1px solid #eceef1;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #8a909a;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    user-select: none;
}

.auth-tab.active {
    color: #1f2937;
    font-weight: 500;
    border-bottom-color: #1e3a8a;
}

.auth-body {
    padding: 32px 60px 40px;
}

.auth-pane {
    display: none;
}

.auth-pane.active {
    display: block;
}

/* 表单字段 */
.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #dcdfe4;
    border-radius: 4px;
    overflow: hidden;
}

.auth-input-wrap:focus-within {
    border-color: #1e3a8a;
}

.auth-input-wrap .icon {
    padding: 0 12px;
    color: #b0b6bf;
    font-size: 15px;
}

.auth-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 10px 12px 10px 0;
    font-size: 14px;
    color: #1f2937;
    background: transparent;
}

.auth-code-btn {
    flex-shrink: 0;
    border: none;
    border-left: 1px solid #dcdfe4;
    background: #fafbfc;
    color: #1e3a8a;
    font-size: 13px;
    padding: 0 14px;
    height: 100%;
    cursor: pointer;
    white-space: nowrap;
}

.auth-code-btn:disabled {
    color: #b0b6bf;
    background: #f5f6f8;
    cursor: not-allowed;
}

/* 主按钮 */
.auth-submit {
    width: 100%;
    border: none;
    border-radius: 4px;
    background: #1e3a8a;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 11px 0;
    cursor: pointer;
}

.auth-submit:hover {
    background: #18316f;
}

.auth-submit:disabled {
    background: #aab3cf;
    cursor: not-allowed;
}

/* 二维码扫码登录 */
.auth-qr-box {
    text-align: center;
}

.auth-qr {
    width: 200px;
    height: 200px;
    margin: 6px auto 14px;
    border: 1px solid #eceef1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
}

.auth-qr img {
    width: 184px;
    height: 184px;
}

.auth-qr-mask {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .94);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 14px;
}

.auth-qr-mask.show {
    display: flex;
}

.auth-qr-tip {
    font-size: 13px;
    color: #8a909a;
    line-height: 1.6;
}

.auth-qr-tip strong {
    color: #1f2937;
    font-weight: 500;
}

.auth-hint {
    margin-top: 14px;
    font-size: 12px;
    color: #b0b6bf;
    text-align: center;
}

.auth-error {
    display: none;
    background: #fdf3f3;
    color: #d4380d;
    border: 1px solid #f3d4d4;
    border-radius: 4px;
    font-size: 13px;
    padding: 9px 12px;
    margin-bottom: 14px;
}

.auth-error.show {
    display: block;
}
