@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: black;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Glass container for sections */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.btn-close {
    filter: invert(1);
}

.login-container {
    position: relative;
    display: flex;
    gap: 60px; 
    z-index: 1;
    width: 800px;
    height: auto;
    padding: 20px;
    color: #fff;
} 

.login-container::before {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: calc(50% - 0.5px); /* Centered at the midpoint, accounting for half the line width */
    width: 1px; /* The thickness of the line */
    background-color: #ccc; /* The color of the line */
}

.left-hand-side, .right-hand-side {
    flex: 1;
}

#formLogin {
    position: relative;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.login-container input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: none;
    border-radius: 3px;
    background: none;
    font-size: 16px;
}

.login-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.user-icon {
    font-size: 10vh;
    color: rgba(255, 255, 255, 0.8);
}

.login-title {
    position: relative;
    top: 5%;
    font-size: 30px;
}

.login-header {
    position: relative;
    bottom: 10px;
    font-size: 2rem;
    font-weight: 300;
}

.inputFieldIcon {
    background: none; /* Light gray background for the input group text */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: 10%;
}

.form-label {
    font-weight: bold; /* Bold labels for better readability */
}

.inputFieldContainer {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 3px;
}

/* placheolder styling */
.inputFieldContainer input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.inputFieldContainer input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Ensuring consistent text color and size for input fields */
.inputFieldContainer input {
    color: #fff;
    font-size: 16px;
}

/* Handling focus state for input fields */
.inputFieldContainer input:focus {
    color: #fff;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    background: none;
    outline: none; /* Removing default outline for a cleaner look */
    box-shadow: none; /* Removing any shadow effects */
}

/* Autofill styling for Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: padding-box;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Adjusts the placeholder text color when autofilled */
input:-webkit-autofill::first-line::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* Styling for the logo */
.logo {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 80px;
    width: auto;
}

.nebula-description {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 13px;
}

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

.signup-link:hover {
    text-decoration: underline;
}

/* Modal Styling*/
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: 100vh;
    --bs-modal-margin: 0 !important;
}

.modal-content {
    color: white;
    margin: auto; /* Centers the modal */
    border-radius: 10px;
    background: rgba(58, 58, 75, 0.7);
}

/* Keyframes for the modal backdrop */
@keyframes fadeInOverlay {
    from {
      background-color: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0px);
    }
    to {
      background-color: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
    }
}
  
  /* Keyframes for the modal dialog (content) */
@keyframes fadeInModal {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}
  
/* Apply animations to the modal backdrop */
/* The defualt bootstrap animation occur sequentially and so need to be overrided */
.modal-backdrop.show {
    animation: fadeInOverlay 0.5s forwards;
}
  
/* Apply animations to the modal content (glass-container) */
.modal.fade.show .modal-dialog .glass-container {
    animation: fadeInModal 0.5s forwards;
}

@media (max-width: 768px) {
    .login-container {
      flex-direction: column;
      gap: 20px;
      width: 90%;
    }
    
    /* Center the left-hand side content */
    .left-hand-side,
    .right-hand-side {
      flex: 1 1 100%;
      text-align: center;
    }
    
    /* Hide the vertical separator if it's implemented via a pseudo-element */
    .login-container::before {
      display: none;
    }
    
    /* Adjust form container positioning */
    #formLogin {
      position: static;
      transform: none;
      width: 100%;
    }
}