* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

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

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.message.error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #060;
    border: 1px solid #cfc;
}

.result-box {
    margin-top: 20px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    display: none;
}

.result-box h3 {
    color: #333;
    margin-bottom: 12px;
}

.result-item {
    padding: 8px 0;
    border-bottom: 1px solid #e1e1e1;
    font-size: 14px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item span {
    color: #666;
}

.result-item strong {
    color: #333;
}

.token-box {
    margin-top: 12px;
    padding: 12px;
    background: #e8f4e8;
    border-radius: 8px;
    word-break: break-all;
    font-size: 12px;
    max-height: 100px;
    overflow-y: auto;
}

/* 登录页面 - 标签切换 */
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}
.login-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}
.login-tab:hover {
    color: #667eea;
}
.login-form {
    display: none;
}
.login-form.active {
    display: block;
}
.captcha-row {
    display: flex;
    gap: 10px;
}
.captcha-row input {
    flex: 1;
}
.captcha-btn {
    padding: 12px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
}
.captcha-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Dashboard 页面 */
.dashboard-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 500px;
}
.dashboard-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.dashboard-header h1 {
    color: #333;
    font-size: 24px;
}
.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
}
.user-info {
    padding: 0;
}
.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.info-item:last-child {
    border-bottom: none;
}
.info-label {
    color: #666;
    font-size: 14px;
}
.info-value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}
.logout-btn {
    width: 100%;
    padding: 14px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}
.logout-btn:hover {
    background: #e5e5e5;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.status-online {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-offline {
    background: #ffebee;
    color: #c62828;
}
.remind-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.remind-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
.remind-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.remind-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.remind-result.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}
.remind-result.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}
.online-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.online-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}
.online-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 修改密码区域 */
.passwd-section {
    margin-top: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.passwd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}
.passwd-header:hover {
    background: #f0f0f0;
}
.passwd-form {
    padding: 16px;
    border-top: 1px solid #eee;
}
.passwd-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}
.passwd-input:focus {
    outline: none;
    border-color: #667eea;
}
