/* Minimal and Simple Stylesheet for PHP Login */
body {
    font-family: Arial, sans-serif;
    background: url('./images/RegisterPage.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

form {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], input[type="password"], input[type="file"] {
    width: calc(100% - 16px);
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="file"]:focus {
    border-color: #3498db;
    outline: none;
}

button[type="submit"] {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

h1 {
    color: black;
    margin: 0; /* Remove extra margin */
    text-align: center;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Add a simple animation for form elements */
input, button {
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Error Message Styling */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: -10px; /* Pull it closer to the input */
    margin-bottom: 10px;
    display: none; /* Hidden by default */
}

input.invalid {
    border-color: red;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    form {
        width: 90%;
    }
}

p.message, p.already-registered {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

/* Center the entire container */
.container {
    max-width: 400px;
    width: 100%;
    padding: 40px 20px;
}
