* {
  box-sizing: border-box;
}

:root {
  --blue-dark: #102b54;
  --blue-border: #8ca5c8;
  --text-dark: #132a4f;
  --text-light: #bfc4cd;
  --card-radius: 34px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: url("assets/photo-bg.jpg") center center / cover no-repeat;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: min(100%, 490px);
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 42px 22px 24px;
  text-align: center;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}

.logo {
  display: block;
  width: 185px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 30px;
}

h1 {
  margin: 0 0 30px;
  color: var(--text-dark);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.login-form {
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
}

.login-form input {
  width: 100%;
  height: 56px;
  margin-bottom: 16px;
  padding: 0 24px;
  border: 1.4px solid var(--blue-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input::placeholder {
  color: var(--text-light);
}

.login-form input:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(16, 43, 84, 0.12);
}

.login-form button {
  display: block;
  width: 245px;
  height: 54px;
  margin: 4px 0 20px auto;
  border: 0;
  border-radius: 999px;
  background: var(--blue-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: default;
  letter-spacing: 0.1px;
}

.forgot-password {
  display: block;
  width: fit-content;
  color: #838996;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  text-align: left;
}

.forgot-password:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Tablette */
@media (max-width: 768px) {
  body {
    background-position: 38% center;
  }

  .login-card {
    width: min(100%, 455px);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .login-page {
    padding: 28px 18px;
  }

  .login-card {
    border-radius: 26px;
    padding: 34px 18px 22px;
  }

  .logo {
    width: 155px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: 17px;
    margin-bottom: 24px;
  }

  .login-form input {
    height: 52px;
    font-size: 15px;
    padding: 0 20px;
  }

  .login-form button {
    width: 100%;
    max-width: 245px;
    margin-left: auto;
    margin-right: auto;
  }

  .forgot-password {
    margin: 0 auto;
    text-align: center;
  }
}
