@import url("/assets/css/learning-course-focus-layout.css");

.auth-password-input {
  position: relative;
  display: grid;
}

.auth-password-input input {
  padding-right: 5.6rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: .48rem;
  min-width: 4.7rem;
  min-height: 38px;
  padding: .35rem .55rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: var(--learn-teal-dark);
  background: rgba(15, 157, 140, .09);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 800;
}

.auth-password-toggle:hover {
  color: var(--learn-navy);
  background: rgba(15, 157, 140, .16);
}

.auth-password-toggle:focus-visible {
  outline: 3px solid var(--learn-teal);
  outline-offset: 2px;
}

.auth-field input[aria-invalid="true"] {
  border-color: var(--learn-danger);
  box-shadow: 0 0 0 4px rgba(168, 58, 50, .12);
}

.auth-field-error {
  display: block;
  margin: 0;
  color: #70251f;
  font-size: .76rem;
  font-weight: 700;
}

.auth-field-error[hidden] {
  display: none !important;
}

.auth-password-hint,
[data-password-hint] {
  display: block;
  margin: 0;
  color: var(--learn-slate);
  font-size: .74rem;
  line-height: 1.4;
}

.auth-status[data-kind="warning"] {
  color: #6d4a08;
  background: #fff7dc;
}

.confirmation-gate__status[data-kind="error"] {
  color: #70251f;
  background: #fff0ed;
}

.confirmation-gate__status[data-kind="success"] {
  color: #075e52;
  background: #e8f7f4;
}

@media (max-width: 360px) {
  .auth-password-input input {
    padding-right: 4.9rem;
  }

  .auth-password-toggle {
    min-width: 4.1rem;
    font-size: .69rem;
  }
}

.auth-card .auth-oauth {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  margin-top: .75rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border: 1px solid #c8cdd5;
  border-radius: 10px;
  color: #202124;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .16), 0 1px 3px rgba(60, 64, 67, .08);
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.auth-card .auth-oauth::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: center / contain no-repeat url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOCAxOCI+CjxwYXRoIGZpbGw9IiM0Mjg1RjQiIGQ9Ik0xNy42NCA5LjIwNWMwLS42MzgtLjA1Ny0xLjI1Mi0uMTY0LTEuODQxSDl2My40ODJoNC44NDRhNC4xNCA0LjE0IDAgMCAxLTEuNzk3IDIuNzE1djIuMjU4aDIuOTA5YzEuNzAzLTEuNTY4IDIuNjg0LTMuODc4IDIuNjg0LTYuNjE0eiIvPgo8cGF0aCBmaWxsPSIjMzRBODUzIiBkPSJNOSAxOGMyLjQzIDAgNC40NjctLjgwNiA1Ljk1Ni0yLjE4MWwtMi45MDktMi4yNThjLS44MDYuNTQtMS44MzcuODU5LTMuMDQ3Ljg1OS0yLjM0NCAwLTQuMzI4LTEuNTg1LTUuMDM3LTMuNzE0SC45NTZ2Mi4zMzJBOSA5IDAgMCAwIDkgMTh6Ii8+CjxwYXRoIGZpbGw9IiNGQkJDMDUiIGQ9Ik0zLjk2MyAxMC43MDZBNS40MSA1LjQxIDAgMCAxIDMuNjgyIDljMC0uNTkyLjEwMi0xLjE2Ny4yODEtMS43MDZWNC45NjJILjk1NkE5IDkgMCAwIDAgMCA5YzAgMS40NTIuMzQ3IDIuODI3Ljk1NiA0LjAzOGwzLjAwNy0yLjMzMnoiLz4KPHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTkgMy41OGMxLjMyMSAwIDIuNTA3LjQ1NCAzLjQ0MSAxLjM0NWwyLjU4MS0yLjU4MUMxMy40NjMuODkyIDExLjQyNiAwIDkgMEE5IDkgMCAwIDAgLjk1NiA0Ljk2MmwzLjAwNyAyLjMzMkM0LjY3MiA1LjE2NSA2LjY1NiAzLjU4IDkgMy41OHoiLz4KPC9zdmc+");
}

.auth-card .auth-oauth:hover {
  border-color: #aeb4be;
  background: #f8fafd;
  box-shadow: 0 2px 4px rgba(60, 64, 67, .18), 0 1px 3px rgba(60, 64, 67, .12);
}

.auth-card .auth-oauth:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(60, 64, 67, .14);
}

.auth-card .auth-oauth:focus-visible {
  outline: 3px solid rgba(15, 157, 140, .34);
  outline-offset: 2px;
}

.auth-card .auth-oauth:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.auth-card .auth-oauth[hidden] {
  display: none !important;
}

/* Le formulaire « nom affiche » appartient a la vue Parametres : ses regles ont
   rejoint la section « Vue Parametres » de kolytica-learning.css. Cette feuille
   est chargee APRES elle, donc les doublons qui vivaient ici gagnaient la
   cascade en silence : corriger la vue dans sa propre section n avait aucun
   effet. */

[data-profile-status][data-kind="error"] { color: #70251f; }
[data-profile-status][data-kind="success"] { color: #075e52; }
