/* 页面布局 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    background-color: #f0f0f0;
}

/* 左右两侧区域 */
.container {
    display: flex;
    width: 100%;
}

/* 左侧图片区域 */
.image-section {
    flex: 1;
    background: url('../img/Warranty_Code.jpg') no-repeat center right;
    background-size: cover;
}

/* 右侧表单验证器区域 */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
form {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

input[type="text"], input[type="email"], input[type="password"], input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #6a82fb;
    color: white;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #5a71e8;
}

/* 错误提示 */
.error-message {
    color: red;
    font-size: 12px;
    display: none;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .image-section {
        display: none;
    }
    .form-section {
        width: 100%;
        box-shadow: none;
    }
}

@media (orientation: landscape) and (max-width: 900px) {
    .container {
        flex-direction: row;
    }
}