.slide-in-right {
  animation: slideInRight 0.45s forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.45s forwards;
}

.slide-in-left {
  animation: slideInLeft 0.45s forwards;
}

.slide-out-right {
  animation: slideOutRight 0.45s forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%) rotateY(90deg);
    opacity: 0;
  }
  to {
    transform: translateX(0) rotateY(0deg);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0) rotateY(0deg);
    opacity: 1;
  }
  to {
    transform: translateX(-100%) rotateY(-90deg);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%) rotateY(-90deg);
    opacity: 0;
  }
  to {
    transform: translateX(0) rotateY(0deg);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0) rotateY(0deg);
    opacity: 1;
  }
  to {
    transform: translateX(100%) rotateY(90deg);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .slide-in-right,
  .slide-out-left,
  .slide-in-left,
  .slide-out-right {
    animation-duration: 0.4s;
  }
}

/* Minimal layout helpers for stacked forms */
.login-forms-container {
  position: relative;
  min-height: 340px;
  perspective: 1000px;
}

.login-form {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.form-organisme {
  z-index: 2;
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}

.form-auditeur {
  z-index: 1;
  opacity: 0;
  transform: translateX(100%) rotateY(90deg);
}

/* ---- Page background: diagonal fade grid (top visible, fades toward bottom) ---- */
.login-page-bg {
  position: relative;
  background-color: #ffffff;
  background-image:
    linear-gradient(195deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.65) 60%, #ffffff 85%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><path d='M 64 0 L 0 0 0 64' fill='none' stroke='%230f172a' stroke-opacity='0.11' stroke-width='1' stroke-dasharray='5 5'/></svg>");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 64px 64px;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
}

/* ---- Input with leading icon ---- */
.input-field {
  position: relative;
}
.input-field .input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  font-size: 15px;
  transition: color 0.2s ease;
}
.input-field .normal-input {
  padding-left: 42px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-field .normal-input:focus {
  outline: none;
  border-color: var(--accent-color, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.input-field:focus-within .input-icon {
  color: var(--accent-color, #2563eb);
}
.input-password-container .input-password {
  padding-left: 42px;
  padding-right: 42px;
}

/* ---- Tabs ---- */
.login-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.login-tab:hover {
  color: var(--accent-color, #2563eb);
}
.login-tab .tab-icon {
  font-size: 13px;
}

/* ---- Aside benefits ---- */
.login-aside-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.18);
}
.login-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.login-benefit-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-color, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ---- Submit button ---- */
.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.55);
}
.login-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.login-submit .login-submit-arrow {
  transition: transform 0.2s ease;
}
.login-submit:hover .login-submit-arrow {
  transform: translateX(3px);
}


