/* Connexion — page autonome */

.page-login {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(160deg, #dfe9f2 0%, #eef3f8 45%, #e8f0f7 100%);
  color: #1a1f26;
}

.page-login__shell {
  width: 100%;
  max-width: 32rem;
}

.page-login__card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 2.75rem);
  box-shadow:
    0 4px 6px rgba(15, 35, 55, 0.06),
    0 22px 48px rgba(15, 35, 55, 0.1);
  border: 1px solid rgba(68, 124, 168, 0.12);
}

.page-login__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #5eb8e8 0%, #447ca8 50%, #4e80a8 100%);
}

.page-login__brand {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--bitcrew-primary);
  text-decoration: none;
  text-align: center;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.page-login__brand:hover {
  color: #3a6b92;
}

.page-login__subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #5a6570;
  text-align: center;
  margin: 0 0 1.75rem;
}

.page-login__flash {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.page-login__flash--success {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.page-login__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d4752;
  margin-bottom: 0.4rem;
}

.page-login__field {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1a1f26;
  background: #fafcfd;
  border: 1px solid rgba(68, 124, 168, 0.22);
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.page-login__field::placeholder {
  color: #8a939c;
}

.page-login__field:hover {
  border-color: rgba(68, 124, 168, 0.35);
}

.page-login__field:focus {
  outline: none;
  border-color: #4e80a8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(78, 128, 168, 0.2);
}

.page-login__field--error {
  border-color: #c53030;
  background: #fff8f8;
}

.page-login__error {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b91c1c;
}

.page-login__row {
  margin-bottom: 1.15rem;
}

.page-login__row:last-of-type {
  margin-bottom: 0;
}

.page-login__forgot {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bitcrew-primary);
  text-decoration: none;
}

.page-login__forgot:hover {
  color: #3a6b92;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-login__submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #5590b8 0%, #4e80a8 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(78, 128, 168, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.page-login__submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 20px rgba(78, 128, 168, 0.4);
  transform: translateY(-1px);
}

.page-login__submit:focus-visible {
  outline: 2px solid #446e8c;
  outline-offset: 3px;
}

.page-login__submit:active {
  transform: translateY(0);
}

.page-login__footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(68, 124, 168, 0.15);
  text-align: center;
}

.page-login__switch {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: #5a6570;
}

.page-login__switch a {
  font-weight: 600;
  color: var(--bitcrew-primary);
  text-decoration: none;
}

.page-login__switch a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #3a6b92;
}

.page-login__back {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
}

.page-login__back:hover {
  color: var(--bitcrew-primary);
}

@media (prefers-reduced-motion: reduce) {
  .page-login__submit {
    transition: none;
  }

  .page-login__submit:hover {
    transform: none;
  }
}
