/* ============================================
   登录页面专用样式
   从 admin/login.php, qr/auth.php 提取
============================================ */

body {
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.login-card, .auth-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f6;
    animation: fadeIn 0.4s ease-out;
}

.auth-card {
    text-align: center;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: #0f172a;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.logo-icon span {
    font-size: 28px;
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.logo p {
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
}

.auth-title {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.product-info {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f6;
}

.product-name {
    font-weight: 500;
    color: #0f172a;
}

.product-model {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.error-message {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #b91c1c;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
}




.form-control {
    width: 100% !important;
    padding: 12px 16px 12px 44px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    background: #ffffff !important;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    user-select: none;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0f172a;
}

.btn-login, .btn-submit {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover, .btn-submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.footer, .hint {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eef2f6;
    font-size: 12px;
    color: #94a3b8;
}

.hint {
    margin-top: 24px;
    padding-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .login-card, .auth-card {
        padding: 36px 28px;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
    }
    
    .logo-icon span {
        font-size: 24px;
    }
    
    .logo h1, .auth-title {
        font-size: 20px;
    }
}

/* ============================================
   强制覆盖 common.css 中的表单样式
============================================ */

/* 使用更具体的选择器提高优先级 */
.auth-container .input-wrapper,
.login-container .input-wrapper {
    position: relative !important;
    width: 100% !important;
}

.auth-container .input-icon,
.login-container .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    color: #94a3b8 !important;
}

.auth-container .form-control,
.login-container .form-control {
    width: 100% !important;
    padding: 12px 16px 12px 44px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.auth-container .form-control:focus,
.login-container .form-control:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* 错误提示样式 */
.error-message {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #b91c1c;
    text-align: left;
}