/* 登录表单样式 */
 :root {
      --primary: #f97316; /* 主题色 */
      --bg: #f8fafc;
      --card: #ffffff;
      --text: #111827;
      --muted: #6b7280;
      --border: #e5e7eb;
    }
/* 登录模态框样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.login-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}



.login-form-container {
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.input-field:focus {
    outline: none;
    border-color: #f97316;
    background: white;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

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

/* 验证码输入容器 */
.code-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.code-field {
    flex: 1;
}

.get-code-btn {
    padding: 0 1.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.get-code-btn:not(:disabled):hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1a1a1a;
}

.get-code-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: #f3f4f6;
}

.input-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    min-height: 1.25rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #ff9b4a;
    color: #78350f;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(252, 211, 77, 0.3);
    margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 182, 46, 0.4);
    background: var(--primary);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 表单底部 */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.form-footer p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
}

.form-footer a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #f97316;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
    }
    
    .login-form-container {
        padding: 2rem 1.5rem;
    }
    
    .code-input-wrapper {
        flex-direction: column;
    }
    
    .get-code-btn {
        width: 100%;
        padding: 0.875rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
}
