body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
}

.register-page {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form {
    background-color: white;
    padding: 30px;
    padding-bottom: 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#register-form {
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    margin-bottom: 15px;
}

.button-section {
    position: sticky;
    bottom: 0;
    background-color: white;
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

h1 {
    margin-top: 0;
    margin-bottom: 5px;
    text-align: center;
    color: #333;
}

label {
    display: block;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

label .required {
    color: #ff4444;
    font-weight: bold;
    margin-left: 3px;
}

label .optional {
    color: #888;
    font-weight: normal;
    font-size: 0.9em;
    margin-left: 5px;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="email"],
input[type="file"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

input:required {
    border-left: 3px solid #ff4444;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.button-section button {
    margin-top: 0;
}

.button-section button:not(:first-child) {
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    background-color: #004494;
}

.message {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

.message a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.message a:hover {
    text-decoration: underline;
}
