/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: Arial, sans-serif, 'Roboto', 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS';
    font-weight: 400;
    background: url("../assets/ralphwilsonstadiumblur.jpg") no-repeat center/cover;
    background-attachment: fixed;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    min-height: 100vh;
}

/* Login */
.login-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    margin: auto; /* Center both horizontally and vertically */
}

.login-image {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}


input {
    width: 90%; /* Adjust width relative to container */
    max-width: 250px; /* Prevents the inputs from stretching too far */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    margin: 5px auto; /* Centers the input fields */
}

#login-button {
    background-color: #d9a404; /* Gold color for trophy theme */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    width: 90%;
    transition: 0.3s;
}

#login-button:hover {
    background-color: #b8860b;
}

/*Footer*/
footer {
    background: rgb(131, 180, 180);
    height: 80px;
    width: 100%; /* Make it span the entire width of the screen */
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    color: white;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

form p.errorlist {
    color: red;
    font-weight: bold;
    list-style: none;
    padding: 5px;
    margin: 5px 0;
}

/*  Registration styles  */

.form-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
    padding: 20px;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: auto;
    margin-top: 50px;
    text-align: center;
}

/* ✅ Ensure form fields are aligned properly */
.form-container label {
    display: block;  /* ✅ Makes label take full width */
    font-weight: bold;
    color: black;
    margin-bottom: 5px;  /* ✅ Moves label closer to input field */
    text-align: left;  /* ✅ Ensures labels are left-aligned */
}

.form-container input {
    display: block;
    width: 100%;  /* ✅ Makes input fields stretch full width */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;  /* ✅ Prevents padding from affecting width */
}

/* ✅ Adjust form field spacing */
.form-container .mb-3 {
    margin-bottom: 15px;  /* ✅ Ensures even spacing */
}

h2 {
    text-align: center;
    font-weight: bold;
}

.form-check-input {
    width: 40px;
    height: 20px;
    cursor: pointer;
}

.toggle-switch {
    width: 40px;
    height: 20px;
}

ul.helptext {
    list-style-type: disc;
    padding-left: 1.2rem;
    text-align: left;
}

ul.helptext li {
    text-align: left;
}

/* Show/Hide Password */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  /* Make space for the eye button inside the field */
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-30%); /* keeps it vertically centered with your current input height */
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: #6c757d;
}

.toggle-password:hover {
  color: #000;
}

.toggle-password:focus {
  outline: 2px solid #b8860b; /* matches your gold hover tone */
  outline-offset: 2px;
  border-radius: 4px;
}
