﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.login-container {
    background-color: #F2F4F8;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 600px;
    overflow: hidden; /* Ensures the rounded corners clip the image */
    display: grid;
    grid-template-rows: auto 1fr;
}


.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}


.header-section {
    background-image: url('/Content/images/CreateAccountBackground.svg');
    background-size: cover;
    background-position: center;
    padding: 40px;
    color: white;
    text-align: center;
    position: relative;
}

    .header-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /*background: rgba(0, 0, 0, 0.5);*/ /* Dark overlay for better text readability */
    }

.header-content {
    position: relative; /* Places content above the overlay */
    z-index: 1;
}

    .header-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .header-content p {
        font-size: 14px;
        opacity: 0.9;
    }

.form-section {
    padding: 30px 40px;
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    gap: 10px;
}

.form-group {
    display: grid;
    gap: 8px;
}

    .form-group label {
        font-size: 14px;
        color: #555;
        font-weight: bold;
    }

    .form-group input {
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 14px;
        transition: border-color 0.3s;
    }

        .form-group input:focus {
            outline: none;
            border-color: #4a90e2;
        }

.remember-me {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #000000;
}

    .remember-me input {
        width: 16px;
        height: 16px;
        color:black
    }

.login-button {
    background-color: #97C749;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

/*    .login-button:hover {
        background-color: #3a7bc8;
    }*/

.create-account {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

    .create-account a {
        color: #97C749;
        text-decoration: underline;
        font-weight: bold;
    }

        .create-account a:hover {
            text-decoration: underline;
        }


.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
}

.remember-forgot {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    font-size: 14px;
}

.forgot-password {
    text-align: right;
}

    .forgot-password a {
        color: #545557;
        text-decoration: underline;
    }


.password-container {
    position: relative;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    width: 100%; /* Ensure input takes full width */
}

.toggle-password {
    position: absolute;
    right: 15px; /* Adjusted from 10px to 15px */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    z-index: 2; /* Ensure it's above the input */
    padding: 5px; /* Makes it easier to click */
}


@media (max-width:730px){
    .login-container {
        background-color: #F2F4F8;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: auto;
        overflow: hidden;
        display: grid;
        grid-template-rows: auto 1fr;
    }
}


@media (max-width:380px){
    .login-container {
        width: 32rem !important;
    }
}