/* ============================================
   小悟学伴 - 登录页样式
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 30%, #fff 70%, #f0f9ff 100%);
    background-size: 300% 300%;
    animation: bgShift 10s ease infinite;
}

@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    height: 42px;
    width: auto;
    margin-bottom: 16px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 0.95rem;
    color: #64748b;
}

/* 表单 */
.login-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* 验证码行 */
.code-row {
    display: flex;
    gap: 12px;
}

.code-row input {
    flex: 1;
}

.code-row .shared-btn {
    white-space: nowrap;
    min-width: 120px;
    padding: 12px 16px;
    font-size: 0.85rem;
}

/* 分隔线 */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* 管理员切换 */
.login-admin-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
}

.login-admin-toggle:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    background: #f0f9ff;
}

/* 提示 */
.login-tip {
    text-align: center;
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: 24px;
}

/* 发送按钮禁用态 */
#sendCodeBtn:disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-form { padding: 24px 20px; }
    .code-row { flex-direction: column; }
    .code-row .shared-btn { min-width: auto; }
}
