@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #e6f1f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;

    background-image: url('../images/elista-bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.login-container {
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
    width: 350px;
    text-align: center;
    border-radius: 6px;
    border-style: none;
}

.back-top-left {
    display: inline-block;
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background-color: #005b96;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.back-top-left:hover {
    background-color: #03396c;
}

.logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 100px;
    height: auto;
}

.icon {
    display: block;
    margin: 0 auto 20px auto;
    width: 100px;
    height: auto;
}


.login-container h2 {
    margin-bottom: -10px;
    color: #333;
    font-weight: 600;
}

.login-container p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
    font-family: 'Poppins', Arial, sans-serif;
}

/* layout for separate name fields in signup */
.name-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.name-grid .input-group {
    flex: 1 1 100%;
}
@media (min-width: 500px) {
    .name-grid .input-group {
        flex: 1 1 calc(33% - 10px);
    }
}

/* forgot password + sign up links */
.extra-links {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.extra-links a {
    color: #0a66c2;
    text-decoration: none;
    font-size: 15px;
}

.extra-links a:hover {
    text-decoration: underline;
}

.signup-text {
    margin-top: 5px;
    font-size: 12px;
    color: #333;
}

.login-container input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #005b96;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
}

.login-container input[type="submit"]:hover {
    background-color: #03396c;
}

.message-area {
    min-height: 35px;   
    margin-bottom: 10px;
}

.error {
    background: #ffd6d6;
    border: 1px solid red;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: red;
    font-size: 13px;
}

.success {
    background: #c7f5d9;
    border: 1px solid #1c8f4c;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #1c8f4c;
    font-size: 13px;
}

/* back to login button after password reset */
.back-btn {
    width: 100%;
    padding: 12px;
    background-color: #005b96;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
}

.back-btn:hover {
    background-color: #03396c;
}
