* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.register-container {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f8f9fa;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.register-form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.register-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.register-header p {
    font-size: 14px;
    opacity: 0.9;
}

.register-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

.input-with-icon i::before {
    font-style: normal;
    font-weight: normal;
}

.icon-user::before {
    content: "👤";
}

.icon-lock::before {
    content: "🔒";
}

.input-with-icon input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #20c997;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

.error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    min-height: 18px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.login-link p {
    color: #6c757d;
    font-size: 14px;
}

.login-link a {
    color: #20c997;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #28a745;
    
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.message.success {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.message.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* 响应式设计 */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .register-header {
        padding: 25px 20px;
    }
    
    .register-body {
        padding: 25px 20px;
    }
}