*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* สไตล์สำหรับแบบฟอร์ม */
.form-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    margin: 50px auto;
}

.form-wrapper h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #ffa600;
    box-shadow: 0 0 5px rgb(255, 136, 0);
}

.form-wrapper button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #ffae00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.form-wrapper button[type="submit"]:hover {
    background-color: #ffae00;
}

.login-link, .register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
    color: #555;
}

.login-link a, .register-link a {
    color: #ffae00;
    text-decoration: none;
}

.login-link a:hover, .register-link a:hover {
    text-decoration: underline;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}