:root {
    --auth-bg: #eef4ff;
    --auth-card: rgba(255,255,255,.94);
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: rgba(15,23,42,.12);
    --auth-primary: #2563eb;
    --auth-primary-2: #0ea5e9;
    --auth-ring: 0 0 0 4px rgba(37,99,235,.12);
    --auth-radius: 20px;
    --auth-shadow: 0 24px 70px rgba(15,23,42,.14);
  }

  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  body {
    min-height: 100vh;
    background:
      radial-gradient(900px circle at 10% 10%, rgba(37,99,235,.13), transparent 48%),
      radial-gradient(780px circle at 90% 90%, rgba(14,165,233,.13), transparent 50%),
      linear-gradient(135deg, #eef4ff, #f8fafc) !important;
  }

  .auth-wrap {
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    overflow: hidden;
  }

  .auth-card {
    width: 100%;
    max-width: 520px;
    padding: 30px 32px 24px;
    border-radius: var(--auth-radius);
    border: 1px solid rgba(15,23,42,.10);
    background: var(--auth-card);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .home-btn {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
    color: var(--auth-primary);
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15,23,42,.06);
  }

  .home-btn:hover {
    color: #1d4ed8;
    background: #f8fafc;
    text-decoration: none;
  }

  .home-btn svg {
    width: 16px;
    height: 16px;
  }

  .auth-title {
    margin: 0 0 6px;
    color: var(--auth-text);
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -.03em;
  }

  .auth-subtitle {
    margin: 0 0 22px;
    color: var(--auth-muted);
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
  }

  .alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
  }

  .floating-field {
    position: relative;
    margin-bottom: 14px;
  }

  .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 4;
    width: 20px;
    height: 20px;
    color: rgba(15,23,42,.48);
    transform: translateY(-50%);
    pointer-events: none;
    transition: color .18s ease;
  }

  .form-control.in {
    width: 100%;
    height: 56px;
    padding: 20px 48px 7px 48px !important;
    border-radius: 14px;
    border: 1px solid var(--auth-border) !important;
    background: #f8fafc !important;
    color: var(--auth-text) !important;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
  }

  .form-control.in::placeholder {
    color: transparent;
  }

  .form-control.in:hover {
    border-color: rgba(15,23,42,.18) !important;
  }

  .form-control.in:focus {
    border-color: rgba(37,99,235,.55) !important;
    background: #fff !important;
    box-shadow: var(--auth-ring) !important;
    transform: translateY(-1px);
  }

  .floating-field:focus-within .field-icon {
    color: var(--auth-primary);
  }

  .floating-label {
    position: absolute;
    left: 48px;
    top: 50%;
    z-index: 3;
    color: rgba(15,23,42,.58);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all .16s ease;
  }

  .floating-field:focus-within .floating-label,
  .floating-field.has-value .floating-label,
  .floating-field .form-control.in:not(:placeholder-shown) ~ .floating-label {
    top: 10px;
    color: var(--auth-primary);
    font-size: 11px;
    font-weight: 900;
    transform: none;
  }

  .btn-send {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--auth-primary), var(--auth-primary-2));
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
    transition: filter .18s ease, transform .18s ease;
  }

  .btn-send:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
  }

  .auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15,23,42,.10);
  }

  .muted-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 900;
  }

  .muted-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
  }

  .invalid-feedback,
  .form-error-message,
  .text-danger {
    color: #dc2626 !important;
    font-size: 12px;
    font-weight: 800;
  }

  @media (max-width: 576px) {
    html,
    body {
      overflow: auto !important;
      scrollbar-width: none !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
      display: none !important;
    }

    .auth-wrap {
      height: auto;
      min-height: 100dvh;
      padding: 18px 12px;
      overflow: visible;
    }

    .auth-card {
      max-width: 100%;
      padding: 24px 18px 18px;
    }

    .auth-title {
      font-size: 23px;
    }

    .auth-links {
      align-items: flex-start;
      flex-direction: column;
      gap: 8px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .form-control.in,
    .btn-send {
      transition: none;
    }

    .form-control.in:focus,
    .btn-send:hover {
      transform: none;
    }
  }

  /* ===== Vibration champ requis forgot password ===== */
	@keyframes forgotShake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-8px); }
	40% { transform: translateX(8px); }
	60% { transform: translateX(-5px); }
	80% { transform: translateX(5px); }
	}

	.forgot-vibrate {
	animation: forgotShake .38s ease-in-out;
	}

	.forgot-vibrate .form-control.in {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, .14) !important;
	}

	.form-control.in.is-invalid {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, .14) !important;
	}

	.forgot-field-message {
	display: none;
	margin: -8px 0 12px;
	color: #dc2626;
	font-size: 12px;
	font-weight: 800;
	}

	.forgot-field-message.show {
	display: block;
	}

	@keyframes forgotShake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-9px); }
	40% { transform: translateX(9px); }
	60% { transform: translateX(-6px); }
	80% { transform: translateX(6px); }
	}

	.forgot-vibrate {
	animation: forgotShake .42s ease-in-out !important;
	}

	.forgot-vibrate .form-control.in,
	.form-control.in.is-invalid {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, .16) !important;
	}

	.forgot-email-error {
	display: none;
	margin: -7px 0 12px;
	color: #dc2626;
	font-size: 12px;
	font-weight: 900;
	}

	.forgot-email-error.show {
	display: block;
	}