*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body{
    display: flex;
    flex-direction: row;
}

/* Dark background overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* grey-out backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Modal box */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  background: var(--card-bg, #1a3e62); /* your normal card color */
  color: var(--text-color, white);     /* your normal text color */
  font-family: 'Lato', sans-serif;
  padding: 24px 32px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  font-size: 1.2rem;
}

/* Modal heading */
.modal-content h2 {
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color, #1976d2);
}

/* Modal paragraph / warning text */
.modal-content p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Buttons container (row layout) */
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;               /* space between buttons */
  margin-top: 10px;
}

/* Button inside modal */
.modal-buttons button {
  background: var(--accent-color, #1976d2);
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 8px 16px;        /* thinner buttons */
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  flex: 1;                  /* optional: equal width */
  max-width: 150px;         /* prevent too wide */
}

.modal-buttons button:hover {
  background: var(--accent-color-hover, #1565c0);
  transform: translateY(-2px);
}




.warning{
    font-family: "Merriweather", serif;
}
#main-container{
    display: flex;
    flex-direction: row;
    margin: 0%;
    padding: 0%;
}

#login-img{
    width: 50vw;
    height: auto;
}

#form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a3e62;
    width: 50vw;
    height: 100vh;
    overflow: hidden; /* Prevent overflow */
}


#form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;              /* Fit within parent */
    max-width: 500px;        /* Prevent it from getting too big */
    padding: 2rem;
    box-sizing: border-box;
}


#sign-up{
    margin-top: 2rem;
    font-family: "Lato", sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #edbd75;
    text-align: center;
}

#tenant-signup{
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    gap: 0rem;
}

label{
    font-family: "Merriweather", serif;
    font-size: 1rem;
}

#otp, #name, #email, #password{
    font-family: "Merriweather", serif;
    font-size: 1rem;
    height: 2.5rem;
    width: 22rem;
    background-color: #f3f4f6;
    border: none;
    border-radius: 0.5rem;
    padding-left: 1rem;
}


#signup-btn{
    margin-top: 2.75rem;
    height: 3.25rem;
    width: 22.5rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.25rem;
    font-family: "Merriweather", serif;
    color: white;
    background-color: #4660ff;
    transition: transform 0.2s ease;
}

#signup-btn:hover{
    background-color: #0023ff;
    transform: scale(1.02);
}

#yes-account{
    font-family: "Lato", sans-serif;
    font-size: 0.85rem;
}

#bottom{
    display: flex;
    justify-content: center;
    margin-top: 4vh;
}

#login{
    color: #edbd75;
    font-weight: bolder;
    transition: color;
}

#login:hover{
    color:#4660ff;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 45px;
}

.password-container i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    z-index: 9999;
    font-size: 18px;
    transition: color 0.2s ease;
}

#password{
    width: 23rem;
}

.password-container i:hover {
    color: #000;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 120%;
    height: 2.5rem; /* align with other inputs */
    background-color: #f3f4f6; /* match other inputs */
    border: none; /* match other inputs */
    border-radius: 0.5rem; /* match other inputs */
    padding: 0 2.25rem 0 1rem; 
    box-sizing: border-box;
    font-family: "Merriweather", serif;
    font-size: 1rem;
}

.password-wrapper i {
    position: absolute;
    top: 30%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
}












@media screen and (max-width: 768px) {
    html, body {
        margin: 0;
        padding: 0;
        height: auto;
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    #main-container {
        position: relative;
        min-height: 100vh; 
        width: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #login-img {
        width: 100%;
        height: 40vh;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        opacity: 0.9;
    }

    #form-container {
        background: none;
        width: 100vw;
        height: auto;
        padding-top: 35vh;
    }

    #form {
        position: relative;
        z-index: 1;
        background-color: white;
        margin-top: 20rem;
        margin-top: -5rem;
        padding: 2rem;
        border-top-left-radius: 8rem;
        width: 100%;
        max-width: 450px;
        text-align: center;
    }

    #sign-up {
        font-size: 2rem;
        margin-bottom: 10px;
        margin-top: 13px;
    }

    #tenant-signup {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 2rem;
    }

    #tenant-signup label {
        align-self: flex-start;
        margin-top: 1rem;
    }

    #otp,
    #name,
    #email,
    #password,
    #signup-btn {
        width: 100%;
        margin-top: 0.5rem;
    }


    #bottom {
        margin-top: 1.5rem;
    }

    #yes-account {
        font-size: 0.95rem;
    }

    #yes-account a {
        color: #4660ff;
        text-decoration: none;
    }

    #yes-account a:hover {
        text-decoration: underline;
    }
}
