*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
}


.topbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--bs-primary);
  }
  
  .topbar .dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
  }
  
  .topbar .dropdown .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    padding-top: 11px;
    border: 0;
    transition: .5s;
    opacity: 1;
  }
  
  .topbar a {
    position: relative; /* Ensures it is positioned above any potential overlaps */
    z-index: 9999; /* Makes sure it stays above other elements */
  }
  
  /* Ensure proper alignment for smaller devices */
  @media (max-width: 992px) {
    .topbar .d-flex {
      text-align: center; /* Center the content on smaller devices */
    }
  
    .topbar a {
      display: block; /* Ensures each link takes the full width on smaller screens */
      margin-bottom: 10px;
    }
  }
/* Background shapes */
.background {
    width: 430px;
    height: 520px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.background .shape {
    height: 200px;
    width: 200px;
    position: absolute;
    border-radius: 50%;
}

@media screen and (max-width: 480px) {
    /* Make the form take up the full screen width */
    form {
        width: 100%; 
        height: auto;  /* Adjust height automatically */
        padding: 20px;
    }

    /* Adjust background shape size for mobile */
    .background {
        width: 250px;
        height: 300px;
    }

    /* Adjust font size for the form header */
    form h3 {
        font-size: 24px;
    }

    /* Adjust label font size */
    label {
        font-size: 14px;  /* Slightly larger label font */
    }

    /* Adjust input field font size */
    input {
        font-size: 16px; /* Increase font size for better readability */
    }

    /* Adjust button font size */
    button {
        font-size: 16px;  /* Adjust button text size */
        padding: 12px 0;   /* Make the button a bit bigger */
    }

    /* Make the toast message fit the screen */
    .toast {
        width: 100%;
        left: 0;
        right: 0;
    }

    .progress-bar {
        width: 100%;
    }
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 60px !important;
    right: 20px;
    width: 200px;
    height: 50px; /* Increased width for the toast */
    padding: 10px;
    background-color: red;
    color: white;
    border-radius: 5px;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.toast.show {
    display: block;
    opacity: 1;
}

/* Progress bar inside the toast */
.progress-bar {
    height: 5px;
    background-color: white;
    width: 100%;
    transition: width 5s linear; /* Makes the bar shrink over 5 seconds */
}

/* Form styles */
form {
    height: auto;
    width: 400px;
    background-color: rgba(41, 175, 7, 0.13);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    padding: 50px 35px;
    transition: width 0.3s ease-in-out;
}

form * {
    font-family: 'Poppins', sans-serif;
    color: black !important;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

form h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
}

label {
    display: block;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
}

input {
    display: block;
    height: 50px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    padding: 0 10px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 300;
}

::placeholder {
    color: black;
}

button {
    margin-top: 50px;
    width: 100%;
    background-color: #F2A900;
    color: black;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}

.social {
    margin-top: 30px;
    display: flex;
}

.social div {
    background: red;
    width: 150px;
    border-radius: 3px;
    padding: 5px 10px 10px 5px;
    background-color: rgba(255, 255, 255, 0.27);
    color: #eaf0fb;
    text-align: center;
}

.social div:hover {
    background-color: rgba(255, 255, 255, 0.47);
}

.social .fb {
    margin-left: 25px;
}

.social i {
    margin-right: 4px;
}

/* Reset password link */
.reset-password-link {
    text-align: center;
    margin-top: 20px;
}

.reset-password-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.reset-password-link a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    /* Increase the size of the form container for tablet and mobile screens */
    form {
        width: 90%;  /* Set the width to 90% to fill the screen */
        padding: 40px 20px;
        height: auto;  /* Adjust height automatically */
    }

    /* Adjust background shape size */
    .background {
        width: 300px;
        height: 350px;
    }

    /* Adjust form title and other text sizes */
    form h3 {
        font-size: 28px;
    }

    label {
        font-size: 14px;
    }

    input {
        font-size: 16px;
    }

    button {
        font-size: 16px;
        padding: 12px 0;
    }

    /* Make the toast full width for small screens */
    .toast {
        width: 100%;
        left: 0;
        right: 0;
    }

    /* Make the progress bar full width */
    .progress-bar {
        width: 100%;
    }
}

/* Fullscreen mobile style */
@media screen and (max-width: 480px) {
    /* Full screen form for mobile */
    form {
        width: 100%;
        height: auto;  /* Adjust height automatically */
        padding: 20px;
    }

    .background {
        width: 250px;
        height: 300px;
    }

    form h3 {
        font-size: 24px;
    }

    label {
        font-size: 12px;
    }

    input {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 10px 0;
    }
}
