/* ============================================
   美冠塔口腔患者分析系统 - 登录页样式
   ============================================ */

/* 登录页面 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 品牌区 */
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo { font-size: 48px; color: var(--primary); margin-bottom: 8px; }
.login-title { font-size: 20px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.login-subtitle { font-size: 13px; color: #6b7280; margin: 0; }

/* 表单 */
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 4px; }
.login-label { font-size: 13px; font-weight: 600; color: #374151; }
.login-field .input {
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    background: #fafbfc;
}
.login-field .input:focus { border-color: var(--primary); background: #fff; }

/* 登录按钮 */
.login-submit {
    margin-top: 4px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* 错误信息 */
.login-error {
    font-size: 13px; color: var(--danger);
    min-height: 20px; display: none;
}
.login-error.show { display: block; }

/* 加载中提示 */
#loading { display: none; text-align: center; padding: 12px; font-size: 14px; color: var(--primary); }
#loading.show { display: block; }

/* 加载动画 */
.login-loader {
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.login-loader-spinner {
    width: 50px; height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
