/* =============================================
   千单商家前台 - 登录 / 注册页
   ============================================= */

.auth-page {
    min-height: calc(100vh - 64px - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f0f4ff;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 28px;
}

.auth-link {
    color: #2563eb;
    font-weight: 500;
}

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

/* 表单 */
.auth-form-group { margin-bottom: 16px; }

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.auth-required { color: #ef4444; }

.auth-input-wrap { position: relative; }

.auth-input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 42px 0 14px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

/* 无 eye 按钮的 input */
.auth-form-group > .auth-input {
    padding-right: 14px;
}

.auth-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.auth-input::placeholder { color: #9ca3af; }

.auth-eye-btn {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 5px;
    font-size: 13px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s;
}

.auth-eye-btn:hover { color: #6b7280; }

/* 消息 */
.auth-msg {
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 7px;
    margin-bottom: 14px;
    display: none;
}

.auth-msg.show { display: block; }

.auth-msg-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-msg-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* 按钮 */
.auth-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
    margin-top: 6px;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}

.auth-btn:active:not(:disabled) { transform: translateY(0); }

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

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .auth-page { padding: 24px 0; align-items: flex-start; }
    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
        box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    }
    .auth-title { font-size: 20px; }
}
