body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
}

.auth-title {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.login-input-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.role-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.role-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.role-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.password-input {
    box-sizing: border-box;
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #495057;
}

.password-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

/* Toast 通知容器 - 从右上角弹出 */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Toast 基础样式 */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Toast 图标 */
.toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* Toast 内容 */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
    word-wrap: break-word;
}

/* Toast 关闭按钮 */
.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #a0aec0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

/* 成功 Toast */
.toast-success .toast-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.toast-success {
    border-left: 4px solid #48bb78;
}

/* 错误 Toast */
.toast-error .toast-icon {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.toast-error {
    border-left: 4px solid #e53e3e;
}

/* 警告 Toast */
.toast-warning .toast-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.toast-warning {
    border-left: 4px solid #ed8936;
}

/* 信息 Toast */
.toast-info .toast-icon {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.toast-info {
    border-left: 4px solid #4299e1;
}

/* 移动端适配 */
@media (max-width: 480px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .toast-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .role-btn, .password-input, .submit-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
} 