﻿/* Container Styles */
.account-container {
    background-image: url('../images/Account1-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: space-between; /* Space between logo and form box */
    align-items: center;
    min-height: 100vh;
    padding: 2rem 4rem;
    flex-wrap: wrap; /* Allows elements to wrap on smaller screens */
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
}

/* Logo */
.logo {
    width: 100%;
    max-width: 600px; /* Set max width for larger screens */
    height: auto;
}

/* Account Box (Login & Register) */
.account-box {
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    opacity: 0.95;
    min-height: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    /* Header Styles */
    .account-box h2 {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: #000;
    }

    .account-box p {
        font-size: 1rem;
        color: #666;
        margin-bottom: 1.5rem;
    }

    /* Input Field Styles */
    .account-box input[type="text"],
    .account-box input[type="email"],
    .account-box input[type="password"] {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    .account-box input::placeholder {
        color: #aaa;
    }

    /* Eye Icon for Password Field */
    .account-box .password-field {
        position: relative;
    }

        .account-box .password-field input {
            padding-right: 2.5rem;
        }

    .account-box .eye-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #666;
    }

    /* Forgot Password Link */
    .account-box .forgot-password {
        font-size: 0.85rem;
        color: #666;
        text-align: right;
        display: block;
        margin-top: -0.5rem;
        margin-bottom: 1rem;
        text-decoration: none;
    }

        .account-box .forgot-password:hover {
            text-decoration: underline;
        }

    /* Submit Button (Login & Register) */
    .account-box button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        color: #ffffff;
        background-color: #000080; /* Dark blue */
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
        margin-top: 1rem;
    }

        .account-box button:hover {
            background-color: #000066; /* Darker on hover */
        }

    /* Sign-up and Register Link */
    .account-box .sign-up-link {
        font-size: 0.9rem;
        color: #000080;
        margin-top: 1rem;
    }

        .account-box .sign-up-link a {
            color: #000080;
            text-decoration: none;
        }

            .account-box .sign-up-link a:hover {
                text-decoration: underline;
            }

/* Responsive Styling */
@media (max-width: 768px) {
    /* Stack logo and account box vertically */
    .account-container {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    /* Center and resize logo */
    .logo-container {
        padding: 1rem 0;
    }

    .logo {
        max-width: 300px; /* Reduce logo size on smaller screens */
    }

    /* Adjust account box dimensions */
    .account-box {
        padding: 2rem 1.5rem;
        max-width: 100%;
        min-height: auto;
    }

        /* Smaller text and button */
        .account-box h2 {
            font-size: 1.5rem;
        }

        .account-box p,
        .account-box .forgot-password,
        .account-box .sign-up-link {
            font-size: 0.9rem;
        }

        .account-box button {
            padding: 10px;
            font-size: 0.95rem;
        }
}
