/* Resetting margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    /* Removes underline from links */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at left center, rgba(87, 184, 148, 0.1), transparent 40%),
        radial-gradient(circle at right center, rgba(87, 184, 148, 0.1), transparent 40%),
        radial-gradient(rgba(0,0,0,0.03) 1px, transparent 3px);
    background-size: auto, auto, 22px 22px;
    background-color: #ffffff;
    background-attachment: fixed;
}

main {
  flex: 1; /* take remaining height after header */
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    width: auto;
    max-width: 600px;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: auto;
    padding: 20px;
    overflow-x: hidden;
    flex-direction: column;
    background-color: rgba(87, 184, 148, 1);
    border-radius: 10px;
}

.form-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: rgba(87, 184, 148, 1);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: rgba(87, 184, 148, 1);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: rgba(87, 184, 148, 0.5);
}

.login-submit-btn:disabled,
.signup-submit-btn:disabled {
    background-color: #ccc;
}


/* Links */
.form-links p {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.terms-policy-chckbx {
    text-align: center;
    margin-bottom: 15px;
}

.form-links a {
    color: rgba(87, 184, 148, 1);
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.login-still-fig-out-p {
    text-align: center;
    margin: 15px 0 0;
}

.login-still-fig-out-a:hover {
    text-decoration: underline;
}

.login-still-fig-out-a {
    color: #57b894;
    text-decoration: none;
    font-size: 16px;
    font-weight: bolder;
    /* Ensures the text is not bold */
    font-style: italic;
    /* Ensures the text is not italic */
}

.password-rules {
    margin: 20px 0 0 20px;
    /*top right bottom left*/
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: left;
    font-weight: lighter;
    /* Ensures the text is not bold */
    font-style: italic;
    /* Ensures the text is not italic */
    color: #ff0000;
    display: none;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input[type="password"] {
    padding-right: 40px;
    /* Space for the eye icon */
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
}

.eye-icon.open {
    color: #57b894;
}

.eye-icon.closed {
    color: #888;
}

/* Add hover effect for the eye icon */
.eye-icon:hover {
    opacity: 0.7;
}

.message-container {
        margin-top: 5px; /* Space between form elements */
        font-size: 14px; /* Smaller text for the message */
    }

    /* Error message style */
    .message.error {
        color: red;
        font-weight: bold;
    }