/* 公共样式 - Toast提示框 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: #ffffff;
    color: #1f2329;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    font-size: 20px;
}

/* 公共样式 - 登录弹窗 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.login-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: slideUp 0.3s;
}

.login-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2329;
}

.login-body {
    padding: 30px;
}

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

.login-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2329;
    margin-bottom: 8px;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s;
}

.login-input:focus {
    border-color: #4e7cff;
    box-shadow: 0 0 0 3px rgba(78, 124, 255, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background-color: #4e7cff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #3d6ce7;
}

.login-btn:disabled {
    background-color: #c9cdd4;
    cursor: not-allowed;
}

.login-error {
    color: #f53f3f;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.login-error.show {
    display: block;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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