/* login.css adapted from user's style */
body {
    background-color: bisque; /* Fallback */
    background: linear-gradient(230deg, #0cc2a4 50%, #083082cc 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    margin: 0;
}

.login-form {
    width: 350px;
    border-radius: 16px;
    background: linear-gradient(130deg, #33a364 50%, #b9b5b5cc 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    padding: 30px;
    position: relative;
}

.login-form h2 {
    color: #ffff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.login-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 90%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    opacity: 0.9;
    box-sizing: border-box;
}

.login-form input[type="submit"] {
    background-color: #40a333;
    color: #ffff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 40%;
    margin-top: 10px; /* Added margin top */
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.login-form input[type="submit"]:hover {
    background: #2e7d21; /* Darker green for hover */
}

/* Styling for existing logic elements */
.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9em;
    width: 90%;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
}

.error-message {
    background-color: #d9534f; /* Red */
}

.success-message {
    background-color: #5cb85c; /* Green */
}

.info-message {
    background-color: #5bc0de; /* Blue */
}

#otpSection {
    width: 100%;
    text-align: center;
    color: #fff;
}

#otpSection h3 {
    margin-bottom: 15px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #f0f0f0;
}

.register-link a {
    color: #ffff;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}