@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --text-dark: hsl(240, 54%, 15%);
  --text-light: hsl(242, 18%, 64%);
  --primary: hsl(244, 79%, 65%);
  --primary-lighter: hsl(240, 33%, 86%);
  --primary-gradient: linear-gradient(to right, #3671fd, #6f31ff);
  --primary-gradient2: linear-gradient(to right, #5852cc, #6f31ff);
}

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

a,
button {
  all: unset;
  cursor: pointer;
}

img {
  width: 100%;
  height: 100%;
  display: block;
}
.logo-container {
  position: absolute; 
  left: 50%;
  top: 15%;
  transform: translate(-50%, -50%);
  z-index: 1500;
  animation: slideIn 1.5s ease forwards;
}

.logo-image {
  z-index: 1500;
  width: 140px;
  height: auto;
}

.arch-container {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  left: 0;
  right: 0;
  padding: 0px; 
  z-index: -1; 
}

.arch-container img {
  width: 520px;
  top: 28rem;
  height: auto;
}
@keyframes slideInArka1 {
  from {
    transform: translateY(100%) rotate(-180deg) scaleX(-1);
    opacity: 0;
  }
  to {
    transform: translateY(0) rotate(-180deg) scaleX(-1);
    opacity: 1;
  }
}

@keyframes slideInArka2 {
  from {
    transform: translateY(100%) rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) rotate(-180deg);
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#arka1 {
  position: relative;
  animation: slideInArka1 1.5s ease forwards;
}

#arka2 {
  position: relative;
  animation: slideInArka2 1.5s ease forwards;
}

body {
  font-family: Poppins, sans-serif;
  min-height: 100vh;
  background-image: url(/static/background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  animation: slideIn 1s ease forwards;
}

.container {
  max-width: 1070px;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  margin-inline: 1rem;
}

.image-section {
  width: 50%;
  position: relative;
}
.image-wrapper {
  width: 100%;
  height: 100%;
}
.image-wrapper img {
  object-fit: cover;
  border-radius: 15px 0px 0 15px;
}

.content-container {
  background-color: hsla(0, 0%, 100%, 0.3);
  backdrop-filter: blur(30px);
  padding: 2rem;
  width: 80%;
  color: var(--text-dark);
  border-radius: 5px;
  border: 1px solid hsl(0 100% 100% / 0.3);

  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.content-container h1 {
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.content-container span {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 60rem) {
  .container {
    width: 100%;
    margin: 0;
  }
  .content-container {
    width: 100%;
  }
  .arch-container img {
    display: none;
  }
}

.form-section {
  width: 50%;
  background-color: rgb(255, 255, 255);
  padding: 7rem 1rem;
  display: flex;
  align-items: center;
  border-radius: 10px;
  justify-content: center;
}
.form-wrapper {
  width: 75%;
  margin: 0px auto; 
}

.form-wrapper > h2 {
  margin-bottom: 0.1rem;
  font-weight: 600;
}
.form-wrapper > p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 0.2rem;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(25%);
  cursor: pointer;
}
.form-group i {
  opacity: 0.5;
}
.form-group label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #16164d;
}
.form-group input {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem;
  border: 2px solid var(--primary-lighter);
  border-radius: 0.3rem;
}
.form-group input:focus {
  border: 2px solid #6565f0;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.remember-me {
  display: grid;
  grid-template-columns: 1rem auto;
  gap: 0.6rem;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
}

.remember-me input {
  width: 1rem;
  height: 1rem;
  margin-right: 0.3rem;
  border: 1px solid var(--text-light);
  border-radius: 2px;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  background-color: white;
  transform: scale(0);
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}
.remember-me input:checked {
  background: var(--primary-gradient2);
}

.remember-me label {
  color: var(--text-dark);
  user-select: none;
}
.remember-forgot a {
  color: var(--primary);
}
.remember-forgot a:hover {
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

.login-btn,
.google-signin {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;

  font-weight: 500;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  transition: background 0.5s, 0.5s;
}

.login-btn {
  color: white;
  background: var(--primary-gradient2);
}
.login-btn:hover {
  background-color: #FF9C2E;
}

.or-divider {
  width: 100%;
  font-weight: 600;
  color: var(--text-light);
  margin-block: 1.5rem;
  text-align: center;
  position: relative;
}
.or-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  width: 45%;
  background-color: var(--text-light);
}
.or-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  height: 1px;
  width: 45%;
  background-color: var(--text-light);
}

@media screen and (max-width: 50rem) {
  .logo-image {
    width: 110px;
    height: auto;
  }
  .logo-container {
    top: 6%;
  }
  .arch-container img {
    display: none;
  }
  .container {
    max-width: 90%;
    flex-direction: column;
    margin-inline: 0;
  }
  .image-section,
  .form-section {
    width: 100%;
  }
  .image-section {
    height: 35vh;
  }
  .content-container {
    inset: 0;
    transform: translate(0, 0);
    padding: 1rem 1.6rem;
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0px;
  }
  .content-container h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  .content-container p {
    font-size: 0.9rem;
  }
  .form-section {
    flex: 1;
    padding: 1rem 1rem;
    border-radius: 0px
  }
  .logo-container {
    margin-bottom: 1rem;
  }
  .form-wrapper > h2 {
    font-size: 1.25rem;
  }
  .form-wrapper > p {
    margin-bottom: 1rem;
  }
  .form-wrapper button {
    font-size: 0.875rem;
  }
  .or-divider {
    font-weight: 500;
    margin-block: 0.6rem;
  }
  .image-wrapper img {
    border-radius: 0px;
  }
}

@media screen and (max-width: 36.25rem) {
  .logo-image {
    width: 100px;
    height: auto;
  }
  .container {
    max-width: 100%;
  }
  .image-wrapper img {
    border-radius: 15px;
  }
  .form-wrapper {
    width: 90%;
  }
  .form-section {
    border-radius: 0px;
  }
}

h1, p {
  font-family: sans-serif;
}