/* CRASHBOARD 2.0 - AUTH PREMIUM */

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: #f2f5ff;
  background:
    radial-gradient(ellipse 48% 50% at 14% 8%,
      rgba(71,106,215,.22),transparent 85%),
    radial-gradient(ellipse 42% 50% at 90% 95%,
      rgba(68,91,174,.16),transparent 85%),
    #090f1c;
  font-family: system-ui,-apple-system,
    BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.auth-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 18px;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 40px;
  background: linear-gradient(155deg,
    rgba(26,39,62,.98),
    rgba(17,27,46,.99));
  border: 1px solid rgba(143,169,220,.19);
  border-radius: 23px;
  box-shadow:
    0 30px 90px rgba(0,0,0,.36),
    0 0 75px rgba(65,96,191,.07);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,#779cff80,transparent);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.055em;
  color: #f4f7ff;
}

.brand-accent {
  color: #91aaff;
}

.brand-symbol {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 3px;
  transform: rotate(-8deg);
}

.brand-symbol i {
  border-radius: 2px;
  background: #7394fa;
}

.brand-symbol i:nth-child(2) {
  opacity: .65;
}

.brand-symbol i:nth-child(3) {
  opacity: .45;
}

.login-heading {
  text-align: center;
  margin: 35px 0 30px;
}

.login-kicker {
  color: #8faaff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
}

.login-heading h1,
#cbResetPanel h2 {
  color: #f7f9ff;
  font-size: clamp(30px, 5vw, 37px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.17;
  margin: 11px 0;
}

.login-heading p {
  color: #a6b5d0;
  font-size: 14px;
  margin: 8px 0 0;
}

#loginForm,
#cbResetPanel {
  width: 100%;
  min-width: 0;
}

#loginForm label,
#cbResetPanel label {
  display: block;
  color: #dce6f9;
  font-size: 13px;
  font-weight: 700;
  margin: 19px 0 9px;
}

#loginForm .field,
#cbResetPanel .field {
  display: block;
  width: 100%;
  min-width: 0;
  height: 53px;
  border: 1px solid #394967;
  border-radius: 12px;
  padding: 0 15px;
  outline: none;
  background: #202e47;
  color: #f4f7ff;
  font: inherit;
  font-size: 14px;
  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

#loginForm .field::placeholder,
#cbResetPanel .field::placeholder {
  color: #8291ad;
}

#loginForm .field:focus,
#cbResetPanel .field:focus {
  border-color: #83a2ff;
  box-shadow: 0 0 0 3px rgba(96,136,249,.18);
}

.password-wrap,
.cb-reset-password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap .field,
#cbResetPanel .cb-reset-password-wrap .field {
  padding-right: 100px;
}

.eye,
#cbResetPanel .cb-reset-password-eye {
  position: absolute;
  top: 50%;
  right: 9px;
  left: auto;
  bottom: auto;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 78px;
  height: 35px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid #465a7e;
  border-radius: 8px;
  background: #2b3c5a;
  color: #cbd9fa;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.eye:hover,
#cbResetPanel .cb-reset-password-eye:hover {
  background: #384e75;
  color: #fff;
}

.form-bottom {
  display: flex;
  justify-content: flex-end;
  margin: 13px 0 0;
}

.link-button {
  border: none;
  background: transparent;
  padding: 4px 0;
  color: #91aaff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.link-button:hover {
  color: #c1ceff;
  text-decoration: underline;
}

#loginForm .submit,
#cbResetPanel .submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  min-height: 52px;
  margin: 26px 0 0;
  padding: 12px 16px;
  border: 1px solid #7899ff;
  border-radius: 11px;
  background: linear-gradient(110deg,
    #4473f0,#6489ff);
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition:
    filter .18s ease,
    transform .18s ease;
}

#loginForm .submit:hover,
#cbResetPanel .submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

#loginForm .submit:disabled,
#cbResetPanel .submit:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

#loginForm .submit span:last-child {
  font-size: 21px;
  line-height: 1;
}

#status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #ff9bac;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.login-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #39496780;
  color: #7486a8;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

/* FORMULAIRES MOT DE PASSE OUBLIE / RESET */

#cbResetPanel {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.login-card:has(#cbResetPanel) .login-heading {
  display: none;
}

.login-card:has(#cbResetPanel) .brand {
  margin-bottom: 28px;
}

#cbResetPanel h2 {
  text-align: center;
  font-size: clamp(25px,4vw,31px);
  margin: 5px 0 25px;
}

#cbResetPanel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 19px;
}

#cbResetPanel label > input {
  margin: 0;
}

#cbResetPanel .cb-reset-password-wrap {
  display: block;
  position: relative;
  width: 100%;
}

#cbResetPanel .cb-reset-password-wrap input {
  width: 100%;
  padding-right: 100px;
  margin: 0;
}

#cbResetPanel .cb-reset-password-eye {
  margin: 0;
}

#cbResetPanel p[role="status"] {
  min-height: 0;
  margin: 0;
  color: #a9c0ee;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

#cbResetPanel p[role="status"]:not(:empty) {
  margin-bottom: 16px;
}

#cbResetPanel > .link-button {
  align-self: center;
  margin-top: 19px;
}

#loginForm[hidden] {
  display: none !important;
}

button:focus-visible {
  outline: 2px solid #91aaff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .auth-layout {
    padding: 20px 13px;
  }

  .login-card {
    padding: 29px 23px;
    border-radius: 18px;
  }

  .login-heading {
    margin: 28px 0 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card *,
  .login-card *::before,
  .login-card *::after {
    transition: none !important;
  }
}
