html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.signup-form {
    max-width: 500px;
    width: 100%;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border: 2px solid #DAB30A; 
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

fieldset {
    border: none;
    padding: 0;
}

legend {
    font-size: 1.5rem;
    font-weight: bold;
    color: darkslategray;
    border-bottom: 2px solid #DAB30A;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: darkslategray;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #DAB30A;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: black;
    font-size: 1rem;
    box-sizing: border-box;
}


input:valid {
    border-color: #DAB30A;
}

input:focus {
    outline: none;
    border-color: #DAB30A;
    box-shadow: 0 0 5px rgba(218, 179, 10, 0.5);
}

input[type="file"] {
    width: 100%;
    padding: 8px 0;
    margin: 5px 0 5px;
    color: black;
    font-size: 1rem;
}

input[type="submit"] {
    background-color: #DAB30A;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: black;
    color: #DAB30A;
}

.error-message {
    color: #ff6b6b;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.success-message {
    color: #28a745;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: #DAB30A;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.login-link a:hover {
    text-decoration: underline;
    color: black;
}

.form-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .signup-form {
        padding: 15px;
        margin: 20px auto;
    }
    
    legend {
        font-size: 1.3rem;
    }
}