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

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --h1-font-size: 2rem;
  --normal-font-size: 1rem;
  --small-font-size: .813rem;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

body, html {
  overflow: hidden;
}

/*============== HEADER ==============*/
.login__header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center; 
  z-index: 2;
}

.login__header__logo {
  overflow: hidden; 
  text-align: center;
}

.login__header__logo img {
  max-height: 100%; /* Adjust the max height for the logo */
  width: auto; /* Ensure the logo's width adjusts proportionally */
  height: auto; /* Ensure the logo's height adjusts proportionally */
  border-radius: 2vh;
  padding: 0.2rem; /* Add padding for the rounded border effect */
}
/*=============== LOGIN ===============*/
.login {
  position: relative;
  min-height: 100vh; 
  display: grid;
  grid-template-rows: 1fr auto; 
  align-items: center;
  background-color: #15171c;
}

.login__line {
  margin-bottom: 1rem;
}

.login__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1); 
  overflow: hidden;
}
.login__form {
  position: relative;
  margin-inline: 1.5rem;
  background-color: hsla(0, 0%, 100%, .01);
  border: 2px solid hsla(0, 0%, 100%, .7);
  padding: 2.5rem 1rem;
  color: var(--white-color);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
}

.login__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 1.25rem;
}

.login__inputs, 
.login__box {
  display: grid;
}

.login__inputs {
  row-gap: 1.25rem;
  margin-bottom: 1rem;
}

.login__box {
  grid-template-columns: 1fr max-content;
  column-gap: .75rem;
  align-items: center;
  border: 2px solid hsla(0, 0%, 100%, .7);
  padding-inline: 1.25rem;
  border-radius: 4rem;
}

.login__input, 
.login__button {
  border: none;
  outline: none;
}

.login__input {
  width: 100%;
  background: none;
  color: var(--white-color);
  padding-block: 1rem;
}

.login__input::placeholder {
  color: var(--white-color);
}

.login__box i {
  font-size: 1.25rem;
}

.login__check, 
.login__check-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login__check {
  margin-bottom: 1rem;
  font-size: var(--small-font-size);
}

.login__check-box {
  column-gap: .5rem;
}

.login__check-input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--white-color);
}

.login__forgot {
  color: var(--white-color);
}

.login__forgot:hover {
  text-decoration: underline;
}

.login__button {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: var(--white-color);
  border-radius: 4rem;
  color: var(--black-color);
  font-weight: 500;
  cursor: pointer;
}

.login__twitch {
  font-size: var(--small-font-size);
  text-align: center;
}

.login__twitch a {
  color: var(--white-color);
  font-weight: 500;
}

.login__twitch a:hover {
  text-decoration: underline;
}

.login__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  background-color: hsla(0, 0%, 100%, .01);
  border-top: 2px solid hsla(0, 0%, 100%, .7);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between; 
  flex-direction: row-reverse; 
}

.login__footer__nav,
.login__footer__copy,
.login__footer__credits {
  font-size: var(--small-font-size);
  color: var(--white-color);
}

.login__footer__nav a,
.login__footer__copy a,
.login__footer__credits a {
  color: var(--white-color);
  margin-left: 1rem;
}

.login__footer__nav a:hover,
.login__footer__copy a:hover,
.login__footer__credits a:hover {
  color: hsla(0, 0%, 100%, 0.808);
  text-decoration: underline;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
  .login {
    justify-content: center;
  }
  .login__form {
    width: 420px;
    padding-inline: 2.5rem;
  }
  .login__title {
    margin-bottom: 2rem;
  }
}