/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;

  font-size: 62.5%;

  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  min-height: 100vh;

  display: flex;
  flex-direction: column;

  overflow-x: hidden;

  background: #f4f8fb;

  color: #0d2c4a;

  font-family:
    "Encode Sans Semi Expanded",
    Arial,
    sans-serif;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
  --blue: #0068ac;
  --blue-dark: #0d2c4a;
  --blue-deep: #064d7d;
  --blue-light: #8fd7f1;

  --orange: #ffac33;

  --text: #384854;
  --muted: #71808b;

  --border: #dce6ed;

  --white: #ffffff;

  --danger: #c62828;
  --danger-light: #fff4f4;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  width: 100%;

  background:
    linear-gradient(
      135deg,
      #0068ac 0%,
      #0874b8 100%
    );

  border-bottom: 0.4rem solid var(--blue-light);

  box-shadow:
    0 0.8rem 2.4rem rgba(13, 44, 74, 0.08);
}

.header-container {
  width: min(118rem, calc(100% - 6.4rem));

  height: 10rem;

  margin: 0 auto;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 2rem;
}

.header-brand {
  display: flex;

  align-items: center;
}

.header-logo {
  display: block;

  width: auto;
  height: 8rem;

  object-fit: contain;
}

.header-space {
  display: flex;

  align-items: center;

  gap: 1.2rem;
}

.header-space__name {
  color: rgba(255, 255, 255, 0.75);

  font-size: 1.25rem;
  font-weight: 500;
}

.header-space__badge {
  padding: 0.8rem 1.4rem;

  border: 1px solid rgba(255, 255, 255, 0.22);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.1);

  color: #fff;

  font-size: 1.1rem;
  font-weight: 800;
}


/* =========================================================
   MAIN
========================================================= */

.login-main {
  flex: 1;
}

.login-section {
  width: 100%;

  padding: 6rem 0 7rem;

  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(143, 215, 241, 0.24),
      transparent 26%
    ),
    radial-gradient(
      circle at 92% 86%,
      rgba(0, 104, 172, 0.1),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f2f8fb 100%
    );
}

.login-container {
  width: min(118rem, calc(100% - 6.4rem));

  margin: 0 auto;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
  width: 100%;

  min-height: 64rem;

  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 2.8rem;

  background: #fff;

  box-shadow:
    0 3rem 7rem rgba(13, 44, 74, 0.13),
    0 0.4rem 1.5rem rgba(13, 44, 74, 0.04);
}


/* =========================================================
   LEFT
========================================================= */

.login-presentation {
  position: relative;

  min-width: 0;

  overflow: hidden;

  display: flex;

  align-items: center;

  padding: 5.6rem;

  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 255, 255, 0.12),
      transparent 24%
    ),
    linear-gradient(
      145deg,
      var(--blue) 0%,
      var(--blue-deep) 55%,
      var(--blue-dark) 100%
    );

  color: #fff;
}

.login-presentation__content {
  position: relative;

  z-index: 2;

  width: 100%;
}

.login-eyebrow {
  display: inline-flex;

  margin-bottom: 2rem;

  padding: 0.8rem 1.4rem;

  border: 1px solid rgba(255, 255, 255, 0.16);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);

  color: var(--blue-light);

  font-size: 1.1rem;
  font-weight: 800;

  letter-spacing: 0.14rem;

  text-transform: uppercase;
}

.login-presentation__title {
  max-width: 48rem;

  margin: 0 0 2rem;

  color: #fff;

  font-size: 4rem;
  font-weight: 900;

  line-height: 1.12;

  letter-spacing: -0.05rem;
}

.login-presentation__lead {
  max-width: 48rem;

  margin: 0 0 4rem;

  color: rgba(255, 255, 255, 0.77);

  font-size: 1.5rem;

  line-height: 1.8;
}


/* =========================================================
   BENEFITS
========================================================= */

.login-benefits {
  display: grid;

  gap: 2rem;
}

.login-benefit {
  display: grid;

  grid-template-columns:
    4.4rem minmax(0, 1fr);

  gap: 1.4rem;

  align-items: flex-start;
}

.login-benefit__number {
  display: grid;

  width: 4.4rem;
  height: 4.4rem;

  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.18);

  border-radius: 1.1rem;

  background: rgba(255, 255, 255, 0.08);

  color: var(--orange);

  font-size: 1.05rem;
  font-weight: 900;
}

.login-benefit strong {
  display: block;

  margin-bottom: 0.4rem;

  color: #fff;

  font-size: 1.35rem;
  font-weight: 800;
}

.login-benefit p {
  margin: 0;

  color: rgba(255, 255, 255, 0.62);

  font-size: 1.2rem;

  line-height: 1.6;
}


/* decoration */

.presentation-circle {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;
}

.presentation-circle--one {
  top: -13rem;
  left: -13rem;

  width: 35rem;
  height: 35rem;

  border: 1px solid rgba(255, 255, 255, 0.07);
}

.presentation-circle--two {
  right: -11rem;
  bottom: -11rem;

  width: 32rem;
  height: 32rem;

  background: rgba(255, 255, 255, 0.045);
}


/* =========================================================
   RIGHT
========================================================= */

.login-form-side {
  min-width: 0;

  display: grid;

  place-items: center;

  padding: 5.6rem;
}

.login-form-wrapper {
  width: min(100%, 47rem);
}


/* =========================================================
   FORM HEADER
========================================================= */

.login-form-header {
  margin-bottom: 2.4rem;
}

.login-form-badge {
  display: inline-flex;

  margin-bottom: 1.4rem;

  padding: 0.7rem 1.2rem;

  border-radius: 999px;

  background: #eaf5fb;

  color: var(--blue);

  font-size: 1.05rem;
  font-weight: 900;

  letter-spacing: 0.1rem;

  text-transform: uppercase;
}

.login-form-header h2 {
  margin: 0 0 1rem;

  color: var(--blue-dark);

  font-size: 3.2rem;
  font-weight: 900;

  line-height: 1.2;
}

.login-form-header p {
  margin: 0;

  color: #697782;

  font-size: 1.35rem;

  line-height: 1.7;
}


/* =========================================================
   FIRST LOGIN INFO
========================================================= */

.first-login-info {
  display: grid;

  grid-template-columns:
    3.6rem minmax(0, 1fr);

  gap: 1.2rem;

  align-items: flex-start;

  margin-bottom: 2.4rem;

  padding: 1.5rem;

  border: 1px solid #d5e7f2;

  border-radius: 1.3rem;

  background: #f3f9fc;
}

.first-login-info__icon {
  display: grid;

  width: 3.6rem;
  height: 3.6rem;

  place-items: center;

  border-radius: 50%;

  background: var(--blue);

  color: #fff;

  font-family: Georgia, serif;

  font-size: 1.7rem;
  font-weight: 700;
}

.first-login-info__content > strong {
  display: block;

  margin-bottom: 0.4rem;

  color: var(--blue-dark);

  font-size: 1.25rem;
  font-weight: 900;
}

.first-login-info__content p {
  margin: 0;

  color: #5f6d77;

  font-size: 1.13rem;

  line-height: 1.6;
}

.first-login-info__content p strong {
  color: var(--blue-dark);

  font-weight: 800;
}


/* =========================================================
   ALERT
========================================================= */

.login-alert {
  display: none;

  position: relative;

  grid-template-columns:
    4rem minmax(0, 1fr) 2.5rem;

  gap: 1.2rem;

  align-items: flex-start;

  margin-bottom: 2.4rem;

  padding: 1.5rem;

  border: 1px solid #efb4b4;

  border-left: 0.5rem solid var(--danger);

  border-radius: 1.3rem;

  background: var(--danger-light);

  box-shadow:
    0 0.8rem 2rem rgba(198, 40, 40, 0.07);
}

.login-alert.is-visible {
  display: grid;

  animation: alert-in 0.35s ease;
}

.login-alert__icon {
  display: grid;

  width: 4rem;
  height: 4rem;

  place-items: center;

  border-radius: 50%;

  background: var(--danger);

  color: #fff;

  font-size: 1.7rem;
  font-weight: 900;
}

.login-alert__content strong {
  display: block;

  margin-bottom: 0.4rem;

  color: #9d1c1c;

  font-size: 1.25rem;
  font-weight: 900;
}

.login-alert__content p {
  margin: 0;

  color: #754848;

  font-size: 1.1rem;

  line-height: 1.55;
}

.login-alert__close {
  display: grid;

  width: 2.5rem;
  height: 2.5rem;

  place-items: center;

  padding: 0;

  border: 0;

  background: transparent;

  color: #ad6868;

  font-size: 2rem;

  cursor: pointer;
}

.login-alert__close:hover {
  color: var(--danger);
}

@keyframes alert-in {
  from {
    opacity: 0;

    transform: translateY(-0.8rem);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}


/* =========================================================
   FORM
========================================================= */

.login-form {
  display: grid;

  gap: 2rem;
}

.form-group {
  display: grid;

  gap: 0.8rem;
}

.form-group label {
  color: var(--blue-dark);

  font-size: 1.25rem;
  font-weight: 800;
}

.form-control {
  position: relative;

  display: flex;

  align-items: center;
}

.form-control__icon {
  position: absolute;

  left: 1.6rem;

  display: grid;

  width: 2rem;
  height: 2rem;

  place-items: center;

  color: #79909f;

  pointer-events: none;

  transition: color 0.2s ease;
}

.form-control__icon svg {
  width: 2rem;
  height: 2rem;
}

.form-control input {
  width: 100%;

  height: 5.6rem;

  padding:
    0 5rem
    0 5rem;

  border: 1px solid #cad9e3;

  border-radius: 1.3rem;

  outline: none;

  background: #f8fbfd;

  color: var(--blue-dark);

  font-family: inherit;

  font-size: 1.35rem;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.form-control input::placeholder {
  color: #99a8b2;
}

.form-control input:focus {
  border-color: var(--blue);

  background: #fff;

  box-shadow:
    0 0 0 0.35rem rgba(0, 104, 172, 0.1);
}

.form-control:focus-within
.form-control__icon {
  color: var(--blue);
}


/* error field */

.form-control.has-error input {
  border-color: #d64545;

  background: #fff8f8;

  box-shadow:
    0 0 0 0.3rem rgba(214, 69, 69, 0.08);
}

.form-control.has-error
.form-control__icon {
  color: var(--danger);
}

.form-error {
  display: none;

  color: #b92525;

  font-size: 1.05rem;
  font-weight: 600;
}

.form-group.has-error
.form-error {
  display: block;
}


/* =========================================================
   PASSWORD
========================================================= */

.password-toggle {
  position: absolute;

  right: 1.3rem;

  display: grid;

  width: 3.6rem;
  height: 3.6rem;

  place-items: center;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: transparent;

  color: #7b909e;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.password-toggle svg {
  width: 2rem;
  height: 2rem;
}

.password-toggle:hover,
.password-toggle.is-active {
  background: #eaf4fa;

  color: var(--blue);
}


/* =========================================================
   REMEMBER
========================================================= */

.remember-option {
  position: relative;

  display: inline-flex;

  width: fit-content;

  align-items: center;

  gap: 1rem;

  color: #5d6b74;

  font-size: 1.15rem;

  cursor: pointer;
}

.remember-option input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.remember-checkbox {
  position: relative;

  width: 2rem;
  height: 2rem;

  border: 1px solid #b9c9d3;

  border-radius: 0.5rem;

  background: #fff;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.remember-option input:checked
+ .remember-checkbox {
  border-color: var(--blue);

  background: var(--blue);
}

.remember-option input:checked
+ .remember-checkbox::after {
  content: "";

  position: absolute;

  top: 0.3rem;
  left: 0.65rem;

  width: 0.45rem;
  height: 0.9rem;

  border-right: 0.2rem solid #fff;
  border-bottom: 0.2rem solid #fff;

  transform: rotate(45deg);
}


/* =========================================================
   BUTTON
========================================================= */

.login-submit {
  display: flex;

  width: 100%;

  min-height: 5.6rem;

  align-items: center;
  justify-content: space-between;

  padding: 0 2.2rem;

  border: 0;

  border-radius: 1.3rem;

  background:
    linear-gradient(
      135deg,
      var(--blue) 0%,
      var(--blue-deep) 100%
    );

  color: #fff;

  font-family: inherit;

  font-size: 1.35rem;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 1rem 2.5rem rgba(0, 104, 172, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.login-submit:hover {
  transform: translateY(-0.2rem);

  box-shadow:
    0 1.5rem 3.4rem rgba(0, 104, 172, 0.28);
}

.login-submit__arrow {
  display: grid;

  width: 3.4rem;
  height: 3.4rem;

  place-items: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.12);

  color: var(--orange);

  font-size: 1.8rem;

  transition: transform 0.25s ease;
}

.login-submit:hover
.login-submit__arrow {
  transform: translateX(0.3rem);
}


/* =========================================================
   SECURITY
========================================================= */

.login-security {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 0.8rem;

  margin-top: 2.2rem;

  color: #89969e;

  font-size: 1rem;

  text-align: center;
}

.login-security svg {
  width: 1.7rem;
  height: 1.7rem;

  flex: 0 0 1.7rem;

  color: #4a9e70;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  width: 100%;

  margin: 0;

  background: var(--blue-dark);

  color: #fff;
}

.footer-container {
  width: min(118rem, calc(100% - 6.4rem));

  min-height: 10rem;

  margin: 0 auto;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 3rem;
}

.footer-brand {
  display: flex;

  align-items: center;

  gap: 1.4rem;
}

.footer-logo {
  display: block;

  width: auto;
  height: 5.6rem;

  object-fit: contain;
}

.footer-brand__text strong {
  display: block;

  margin-bottom: 0.35rem;

  color: #fff;

  font-size: 1.15rem;
  font-weight: 700;
}

.footer-brand__text span {
  color: var(--blue-light);

  font-size: 1rem;
}

.footer-credit {
  display: flex;

  align-items: center;

  gap: 0.6rem;

  color: rgba(255, 255, 255, 0.58);

  font-size: 1rem;
}

.footer-credit strong {
  color: var(--orange);

  font-weight: 800;
}

.footer-bottom {
  padding: 1.3rem 2rem;

  border-top: 1px solid rgba(255, 255, 255, 0.09);

  color: rgba(255, 255, 255, 0.45);

  font-size: 0.95rem;

  text-align: center;
}


/* =========================================================
   RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 960px) {

  .header-container,
  .login-container,
  .footer-container {
    width: calc(100% - 4.8rem);
  }

  .login-card {
    grid-template-columns: 1fr;

    max-width: 72rem;

    margin: 0 auto;
  }

  .login-presentation {
    padding: 4.5rem;
  }

  .login-presentation__title {
    max-width: 58rem;

    font-size: 3.4rem;
  }

  .login-presentation__lead {
    max-width: 58rem;
  }

  .login-benefits {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 1.5rem;
  }

  .login-benefit {
    grid-template-columns: 1fr;
  }

  .login-form-side {
    padding: 4.8rem;
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 640px) {

  html {
    font-size: 60%;
  }


  /* Header */

  .header-container {
    width: calc(100% - 3.2rem);

    height: 8rem;
  }

  .header-logo {
    height: 6rem;
  }

  .header-space__name {
    display: none;
  }

  .header-space__badge {
    padding: 0.7rem 1rem;

    font-size: 0.95rem;
  }


  /* Main */

  .login-section {
    padding: 3.2rem 0 4.8rem;
  }

  .login-container {
    width: calc(100% - 2.4rem);
  }

  .login-card {
    border-radius: 2rem;
  }


  /* Left */

  .login-presentation {
    padding: 3.2rem 2.4rem;
  }

  .login-presentation__title {
    font-size: 2.8rem;
  }

  .login-presentation__lead {
    margin-bottom: 3rem;

    font-size: 1.35rem;
  }

  .login-benefits {
    grid-template-columns: 1fr;
  }

  .login-benefit {
    grid-template-columns:
      4rem minmax(0, 1fr);
  }

  .login-benefit__number {
    width: 4rem;
    height: 4rem;
  }


  /* Form */

  .login-form-side {
    padding: 3.2rem 2.2rem;
  }

  .login-form-header h2 {
    font-size: 2.6rem;
  }

  .first-login-info {
    grid-template-columns:
      3.2rem minmax(0, 1fr);
  }

  .first-login-info__icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .login-alert {
    grid-template-columns:
      3.5rem minmax(0, 1fr) 2.4rem;

    padding: 1.3rem;
  }

  .login-alert__icon {
    width: 3.5rem;
    height: 3.5rem;
  }


  /* Footer */

  .footer-container {
    width: calc(100% - 3.2rem);

    min-height: auto;

    padding: 2.5rem 0;

    flex-direction: column;

    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-credit {
    flex-wrap: wrap;

    justify-content: center;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

  .header-container {
    justify-content: center;
  }

  .header-space {
    display: none;
  }

  .login-presentation {
    padding: 2.8rem 1.8rem;
  }

  .login-presentation__title {
    font-size: 2.5rem;
  }

  .login-form-side {
    padding: 2.8rem 1.7rem;
  }

  .first-login-info {
    grid-template-columns: 1fr;
  }

  .login-alert {
    grid-template-columns:
      3.2rem minmax(0, 1fr);
  }

  .login-alert__close {
    position: absolute;

    top: 0.8rem;
    right: 0.8rem;
  }

}