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

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h2 {
    color: #5a67d8;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

button {
    background-color: #5a67d8;
    color: white;
    cursor: pointer;
    border: none;
}

button:hover {
    background-color: #4c51bf;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 10px;
}
/* Style for loading spinner */
.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

 /* Container to keep everything aligned */
.container {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styling for the input fields with icons inside */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
    pointer-events: none;
}

.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="text"],
.input-group select {
    width: 100%;
    padding: 10px 12px 10px 35px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Special styling for password field */
.input-group .icon.lock-icon {
    right: 12px;
    left: auto;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #007bff;
    outline: none;
}

/* Button styling */
button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
}

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

/* Error and info messages styling */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

/* Spinner Styling */
.spinner {
    text-align: center;
    margin-top: 10px;
}

.spinner i {
    font-size: 24px;
    color: #007bff;
}