/**
 * @file
 * Theme styling for user module.
 */

/* Visual styling for the Password strength indicator */
.password-strength__meter {
  margin-top: 0.5em;
  background-color: var(--background-color-light);
}
.password-strength__indicator {
  -webkit-transition: width 0.5s ease-out;
  transition: width 0.5s ease-out;
  background-color: #77b259;
}
.password-strength__indicator.is-weak {
  background-color: #e62600;
}
.password-strength__indicator.is-fair {
  background-color: #e09600;
}
.password-strength__indicator.is-good {
  background-color: #0074bd;
}
.password-strength__indicator.is-strong {
  background-color: #77b259;
}

.password-confirm,
.password-field,
.password-strength,
.password-confirm-match {
  width: 55%;
}

.password-suggestions {
  max-width: 34.7em;
  margin: 0;
  padding: 0.2em 0.5em;
  border: 1px solid var(--border-color);
}
.password-suggestions ul {
  margin-bottom: 0;
}

.confirm-parent,
.password-parent {
  clear: left; /* LTR */
  overflow: hidden;
  max-width: 33em;
  margin: 0;
}
[dir="rtl"] .confirm-parent,
[dir="rtl"] .password-parent {
  clear: right;
}

/* Styling for the status indicator of the passwords match test.  */
.password-confirm-message .ok {
  color: #325e1c;
  font-weight: bold;
}
.password-confirm-message .error {
  color: #a51b00;
  font-weight: bold;
}

[id^="user-toolbar"] {
  background: var(--background-color-light);
  margin: 2rem -60px;
  padding: 20px 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
[id^="user-toolbar"] > * {
  margin: auto;
  font-size: 1.2rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}
[id^="user-toolbar"] > *:hover {
  text-decoration: underline;
}

.moncorvin_info-main {
  margin: 0;
  margin-block-end: 0.75em;
}
.moncorvin_info-suppl {
  margin: 0;
  margin-block-end: 0.75em;
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.moncorvin_add::before {
  content: "";
  background-image: url(/themes/custom/corvin/images/pictofav-off.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 20px;
  height: 16px;
}
.moncorvin_remove::before {
  content: "";
  background-image: url(/themes/custom/corvin/images/pictofav-on.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 12px;
  height: 16px;
}
.moncorvin_eva_empty {
  padding: 0.5em;
  border: 2px dashed #bbbbbb;
  width: fit-content;
}
.moncorvin_eva_empty p {
margin-block: 0;
}
.moncorvin_eva_empty .moncorvin_add::before {
  width: 12px;
}

@media screen and (max-width: 950px) {
  [id^="user-toolbar"] {
    padding: 20px 60px;
    margin: 2rem -20px;
  }
  [id^="user-toolbar"] > * {
    margin-block: 0.5em;
    margin-inline: 0.5em;
  }
}
[id^="user-toolbar"] > * a {
  color: var(--background-color) !important;
}
[id^="user-toolbar"] > * a::after {
  content: none !important;
}
[id^="user-toolbar"] > :not(.flag)::before {
  content: "";
  background: url(/themes/custom/corvin/images/fleche-link.svg) no-repeat;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-block;
  vertical-align: baseline;
  margin-right: 5px;
}
[id^="user-toolbar"] > .edit-tool::before {
  background: url(/themes/custom/corvin/images/edit.svg) no-repeat;
  background-size: 90%;
  background-position: center;
  width: 1.25rem;
  filter: brightness(0%);
}
body.user-form-page:not(.user-logged-in) .region-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5em;
  margin-block: 2em;
}
body.user-form-page:not(.user-logged-in) .block-local-tasks-block {
  flex-basis: 100%;
}
body.user-form-page:not(.user-logged-in) .block-block-content {
  width: 350px;
}
body.user-form-page:not(.user-logged-in) .block-block-content .content {
  margin: 0;
}
body.user-form-page:not(.user-logged-in) .block-block-content h2 {
  margin-block: 0 0.5em;
}
body.user-form-page:not(.user-logged-in) .tabs ul.primary {
  display: flex;
  justify-content: center;
  gap: 4em;
  background: none;
  border-bottom: 1px solid var(--border-color);
}
body.user-form-page:not(.user-logged-in) .tabs ul.primary li {
  width: fit-content;
}
body.user-form-page:not(.user-logged-in) .tabs ul.primary li.is-active {
  border-bottom: 1px solid var(--accent-color);
}

body.user-form-page:not(.user-logged-in) .tabs ul.primary li > a {
  border: none;
  background: none;
  font-size: 1em;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.4em;
}
body.user-form-page:not(.user-logged-in) .tabs ul.primary li.is-active > a {
  color: var(--accent-color);
  font-weight: 600;
}
body.user-form-page:not(.user-logged-in) .tabs ul.primary li > a:hover {
  color: var(--accent-color);
}
body.user-logged-in.path-user .more-link {
  margin-block: 0.5em;
}
@media screen and (max-width: 940px) {
  body.user-form-page:not(.user-logged-in) .region-content {
    flex-direction: column;
    gap: 1em;
    align-items: center;
  }
  body.user-form-page:not(.user-logged-in) .region-content > div:not(.block-local-tasks-block) {
    width: 100%;
    max-width: 500px;
  }
  body.user-form-page:not(.user-logged-in) .tabs ul.primary {
    gap: 0.5em;
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 400px) {
  body.user-form-page:not(.user-logged-in) .tabs ul.primary {
    font-size: 0.8em;
  }
}
