/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Navbar Styles */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 3px solid rgb(230, 230, 230); /* Sharp bottom border for navbar */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust the logo size as needed */
    margin-right: 10px;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px 20px;
    }

    ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Form Styles */
body {
    background-color: white;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 0; /* Remove border-radius for sharp edges */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px; /* Limit the width of the form */
    text-align: center;
    border: 3px solid rgb(230, 230, 230); /* Sharp border for container */
    margin: 50px auto;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #8bc34a;
}

/* Adjust input-group and icon alignment */
.input-group {
    position: relative;
    margin-bottom: 20px;
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Center items vertically */
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Space for the icon */
    border: 2px solid #e0e0e0; /* Adjust border color and width */
    border-radius: 0; /* Remove border-radius for sharp edges */
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.3s;
    height: 45px; /* Ensure the input height aligns with the icon */
}

.input-group i {
    position: absolute;
    left: 15px; /* Position the icon on the left inside the input */
    top: 50%;
    transform: translateY(-50%); /* Center the icon vertically */
    color: #bdbdbd;
    font-size: 18px; /* Adjust icon size */
}

.input-group input:focus {
    outline: none;
    border-color: #8bc34a; /* Change border color on focus */
}

.input-group label {
    font-size: 12px;
    color: #9e9e9e;
    margin-left: 12px;
}

.btn {
    width: 100%;
    background-color: #8bc34a;
    border: 2px solid #8bc34a; /* Sharp border for button */
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0; /* Remove border-radius for sharp edges */
    transition: background-color 0.3s, border-color 0.3s;
}

.btn:hover {
    background-color: #7cb342;
    border-color: #7cb342; /* Adjust border color on hover */
}

.links {
    margin-top: 10px;
}

.links p {
    font-size: 14px;
    color: #9e9e9e;
}

.links button {
    background: none;
    border: none;
    color: #8bc34a;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.links button:hover {
    text-decoration: underline;
}

/* Unique Message Styles */
.messageDiv {
    margin-bottom: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    animation: fadeInOut 5s forwards;
    border: 2px solid #8bc34a; /* Set border to solid */
}

/* Custom Border and Shadow */
.messageDiv.error {
    border-color: red; /* Border color for errors */
    color: red;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2); /* Subtle shadow */
}

.messageDiv.success {
    border-color: #8bc34a; /* Border color for success */
    color: #8bc34a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Animation for fading in and out */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Responsive Form */
@media (max-width: 768px) {
    .container {
        width: 90%; /* Make the form responsive by reducing the width */
        padding: 15px;
    }

    .btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* Footer Styles */
/* Ensure body and html cover full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Main content area */
.main-content {
    flex: 1;
}

/* Footer Styles */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 3px solid rgb(230, 230, 230);
    width: 100%;
    position: relative;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #8bc34a;
    border: 2px solid #8bc34a;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-back:hover {
    background-color: #7cb342;
    border-color: #7cb342;
}

.copyright {
    border: 2px solid #8bc34a;
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-block;
    font-size: 16px;
    color: #8bc34a;
}

.btn-video {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #8bc34a;
    border: 2px solid #8bc34a;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-video:hover {
    background-color: #7cb342;
    border-color: #7cb342;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        margin-bottom: 10px;
    }

    .footer-right {
        text-align: center;
    }
}
