@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");
@import url('fa.css');

:root {
  --small-font-size: 1rem;
  --normal-font-size: 1.3rem;
}

body {
  font-family: 'Poppins', sans-serif;
  width: 100vw;
  height: auto;
  margin: 0;
  background-image: url('assets/login-bg.png');
  background-size: cover;
  background-position: center;
}

/* Form Container */
.container {
  position: relative;

  overflow: hidden;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding: 2rem 1rem;
}

.logo {
  max-width: 100px;
  display: block;
  margin: 0 auto 1rem auto;
  width: 50%;
}

form {
  position: relative;
  background-color: rgba(26, 26, 26, 0.1);
  border: 2px solid #ffffff;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(8px);

  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

h1 {
  font-size: 1.6rem;
  text-align: center;
  margin: 0;
}

h2 {
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

.input-field {
  position: relative;
}

i {
  font-size: 1.25rem;
  position: absolute;
}

.input-field input {
  width: 100%;
  padding: 12px 0;
  background: none;
  color: white;
  border: none;
  font-size: var(--normal-font-size);
  border-bottom: 1px solid #fff;
  padding-left: 25px;
  box-sizing: border-box;
  position: relative;
  inset: 0;
  outline: none;
  z-index: 1;
}

.input-field label {
  position: absolute;
  left: 25px;
  top: 9px;
  font-size: var(--normal-font-size);
  transition:
    top .3s,
    font-size .3s;
}

.input-field i {
  top: 13px;
}

input:focus + label,
.input-field input:not(:placeholder-shown) + label {
  top: -15px;
  font-size: var(--small-font-size);
}

.check-group,
.check-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--small-font-size);
}

input[type="checkbox"] {
  accent-color: black;
  transform: scale(1.2);
  margin-right: 5px;
}

a {
  color: white;
}

button {
  width: 100%;
  padding: 1rem;
  border-radius: .5rem;
  background-color: white;
  color: black;
  font-size: var(--normal-font-size);
  cursor: pointer;
  border: none;
}

p {
  text-align: center;
}

/* Modal */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 92vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background-color: rgba(26, 26, 26, 0.1);
  border: 2px solid #ffffff;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(8px);

  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: var(--normal-font-size);
  color: white;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: red;
  font-size: 20px;
  cursor: pointer;
}

.modal-content .close:hover {
  color: lightcoral;
}

/* Footer styles */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
  position: relative;
  background-color: rgba(26, 26, 26, 0.1);
  border: 2px solid #ffffff;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  max-width: 92vw;
  gap: 2rem;
  margin: 2rem auto 0 auto;
  padding: 1rem;
  flex-wrap: wrap;
  margin: auto;
}

.footer-center {
  font-size: var(--small-font-size);
  text-align: center;
  flex: 1;
}

.footer-center .footer-link {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

.footer-center .footer-link:hover {
  text-decoration: underline;
}

.footer-right {
  display: flex;
  gap: 15px;
}

.footer-right .footer-link img.social-icon {
  width: 24px;
  height: 24px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  body {
    height: auto;
    background-size: cover;
  }

  form {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 0.8rem;
  }

  .input-field input {
    font-size: 1.1rem;
  }

  button {
    font-size: 1.1rem;
    padding: 0.8rem;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
  }

  .modal-content {
    width: 95%;
    padding: 2rem 1rem;
  }
}
