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

/* Visual styling for the Password strength indicator */
.password-strength__meter {
  margin-top: 0.5em;
  background-color: #ebeae4;
}
.password-strength__indicator {
  background-color: #77b259;
  -webkit-transition: width 0.5s ease-out;
  transition: width 0.5s ease-out;
}
.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 {
  padding: 0.2em 0.5em;
  margin: 0.7em 0;
  max-width: 34.7em;
  border: 1px solid #b4b4b4;
}
.password-suggestions ul {
  margin-bottom: 0;
}

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

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

/* Login page stype */
.page-user-login main .region-content,
.page-user-password main .region-content {
  max-width: 400px;
  background: white;
  padding: 15px 25px;
  margin: 0 auto;
  border-radius: 5px;
}

/* User account page */
body.path-user .field--label-inline .field__label {
  width: 100px;
}

body.path-user .field--label-inline .field__item {
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  background: #e9ecef;
  min-width: 250px;
  margin: 0.25rem 0;
}

body.path-user .field--label-above .field__item {
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  background: #e9ecef;
  width: 100%;
  margin: 0.25rem 0;
}

/* Main content block on the /user/{uid} canonical page (page--user.html.twig
   is the only template that wraps content in .aml-page-content, so this
   selector stays scoped to that page and doesn't touch other routes that
   reuse the same "Main page content" block elsewhere on the site). */
.aml-page-content #block-tailwindcss-content {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Account details card on /user/{uid} (canonical user view) */
.aml-profile {
  max-width: 640px;
}

.aml-profile__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.aml-profile__title {
  font-size: 18px;
  font-weight: 700;
  color: #0b4873;
  margin: 0 0 16px;
}

.aml-profile__list {
  margin: 0;
}

.aml-profile__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.aml-profile__row:last-child {
  border-bottom: none;
}

.aml-profile__label {
  font-size: 13px;
  font-weight: 600;
  color: #5b6b7d;
  margin: 0;
}

.aml-profile__value {
  font-size: 14px;
  font-weight: 600;
  color: #0b1f33;
  margin: 0;
  text-align: right;
}

.aml-profile__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.aml-profile__edit-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 8px;
  background: #0b4873;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #0b4873;
}

.aml-profile__edit-btn:hover {
  background: #083a5d;
  border-color: #083a5d;
  color: #fff;
  text-decoration: none;
}