/**
 * @file
 * Account profile + password helpers.
 */

/* —— Profile page shell —— */
.acct-page {
  min-height: 52vh;
  padding: 48px 0 88px;
  background:
    radial-gradient(900px 480px at 8% 0%, rgba(75, 187, 221, 0.10), transparent 70%),
    var(--paper-3, #f4f5f7);
}
.acct-wrap {
  max-width: 560px;
}

.acct-page .block-page-title-block,
.acct-page .page-title {
  display: none;
}

/* Local tasks (View / Edit) */
.acct-page nav.tabs,
.acct-page .block-local-tasks-block {
  margin: 0 0 22px;
}
.acct-page ul.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border-radius: 999px;
  background: var(--paper-2, #eceef1);
  border: 1px solid var(--line, #e4e6ea);
}
.acct-page .tabs > li {
  display: block;
  margin: 0;
}
.acct-page .tabs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2, #3c3c43);
  text-decoration: none;
  background: transparent;
}
.acct-page .tabs a:hover,
.acct-page .tabs a:focus {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink, #0f1114);
}
.acct-page .tabs a.is-active {
  background: #fff;
  color: var(--ink, #0f1114);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* —— Account card —— */
.acct-card {
  background: #fff;
  border: 1px solid var(--line, #e4e6ea);
  border-radius: 20px;
  padding: 36px 28px 30px;
  box-shadow: 0 18px 40px rgba(58, 27, 48, 0.08);
  text-align: center;
}

.acct-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(75, 187, 221, 0.16);
  color: #1a6f8a;
  font-family: var(--serif, "Iowan Old Style", Georgia, serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  overflow: hidden;
}
.acct-avatar--photo {
  padding: 0;
  background: #e8e6e1;
}
.acct-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acct-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand, #4bbbdd);
}
[dir="rtl"] .acct-eyebrow { letter-spacing: 0.4px; }

.acct-name {
  margin: 0;
  font-family: var(--serif, "Iowan Old Style", Georgia, serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink, #0f1114);
  text-wrap: balance;
}
[dir="rtl"] .acct-name {
  font-family: var(--farsi, inherit);
  font-weight: 600;
  letter-spacing: 0;
}

.acct-username {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-3, #8e8e93);
}

.acct-meta {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--ink-2, #3c3c43);
}
.acct-meta span {
  color: var(--ink-3, #8e8e93);
}
.acct-meta strong {
  font-family: var(--serif, "Iowan Old Style", Georgia, serif);
  font-weight: 500;
  color: var(--ink, #0f1114);
}

.acct-bio {
  margin: 18px auto 0;
  max-width: 40ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2, #3c3c43);
}

.acct-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand, #4bbbdd);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 18px rgba(75, 187, 221, 0.32);
  transition: transform 0.15s, box-shadow 0.15s;
}
.acct-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(75, 187, 221, 0.42);
}
.acct-btn--ghost {
  background: #fff;
  color: var(--ink, #0f1114) !important;
  border: 1px solid var(--line, #e4e6ea);
  box-shadow: none;
}
.acct-btn--ghost:hover {
  border-color: var(--brand, #4bbbdd);
  color: var(--brand, #4bbbdd) !important;
  box-shadow: none;
}

/* —— Edit form on account shell —— */
.acct-page .user-form,
.acct-page form.user-form {
  background: #fff;
  border: 1px solid var(--line, #e4e6ea);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(58, 27, 48, 0.08);
}
.acct-page .user-form .form-item {
  margin: 0 0 16px;
}
.acct-page .user-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #3c3c43);
}
.acct-page .user-form input[type="text"],
.acct-page .user-form input[type="email"],
.acct-page .user-form input[type="password"],
.acct-page .user-form input[type="tel"],
.acct-page .user-form textarea,
.acct-page .user-form select {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line, #e4e6ea);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink, #0f1114);
}
.acct-page .user-form input:focus,
.acct-page .user-form textarea:focus,
.acct-page .user-form select:focus {
  outline: none;
  border-color: var(--brand, #4bbbdd);
  box-shadow: 0 0 0 3px rgba(75, 187, 221, 0.22);
}
.acct-page .user-form .description {
  font-size: 12.5px;
  color: var(--ink-3, #8e8e93);
}
.acct-page .user-form .form-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.acct-page .user-form .form-actions .button,
.acct-page .user-form .form-actions input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand, #4bbbdd);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(75, 187, 221, 0.32);
}
.acct-page .user-form .form-actions .button:hover {
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .acct-page { padding: 32px 0 64px; }
  .acct-card { padding: 28px 20px 24px; }
  .acct-name { font-size: 26px; }
}

/* —— Password strength (core user forms) —— */
.password-strength__meter {
  margin-top: 0.5em;
  background-color: #ebeae4;
}
.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,
.password-confirm-message {
  width: 100%;
  max-width: 34.7em;
}

.password-suggestions {
  max-width: 34.7em;
  margin: 0.7em 0;
  padding: 0.2em 0.5em;
  border: 1px solid #b4b4b4;
}
.password-suggestions ul { margin-bottom: 0; }

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

.password-confirm .ok {
  color: #325e1c;
  font-weight: bold;
}
.password-confirm .error {
  color: #a51b00;
  font-weight: bold;
}
