/* My account page + shared password-field / meter styles (also used by the auth screens). */
.avatar--lg { box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e3dccf; }
.avatar--xl { box-shadow: 0 0 0 5px #fff, 0 8px 22px rgba(45, 79, 74, .25); }

.acct-hero { background: #fff; border: 1px solid var(--border-color); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.acct-hero__cover {
  height: 112px; position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(233, 180, 118, .55), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(11, 117, 81, .55), transparent 50%),
    linear-gradient(120deg, var(--brand-forest-deep), var(--brand-forest) 55%, #3b7a68);
}
.acct-hero__body { display: flex; align-items: flex-end; gap: 1.1rem; padding: 0 1.4rem 1.2rem; margin-top: -48px; flex-wrap: wrap; }
.acct-avatar { position: relative; flex: 0 0 auto; }
.acct-avatar .avatar { --avatar: 112px !important; }
.acct-avatar__edit {
  position: absolute; right: 2px; bottom: 4px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff;
  background: var(--brand-gold-text); color: #fff; display: grid; place-items: center; font-size: .95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.2); transition: transform .15s var(--ease);
}
.acct-avatar__edit:hover { transform: scale(1.08); }
.acct-hero__text { padding-top: 3rem; min-width: 0; flex: 1 1 260px; }
.acct-hero__text h1 { margin: 0; font-family: var(--font-display); font-size: 1.55rem; color: var(--brand-forest); line-height: 1.2; }
.acct-hero__role { margin: .15rem 0 .6rem; color: var(--text-muted); font-size: .92rem; }
.acct-hero__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.acct-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: #fff7ea; border: 1px solid #ecd7b6; color: var(--brand-brown); font-size: .78rem; font-weight: 600; }
.acct-chip i { color: var(--brand-gold-text); }

.acct-tabs { display: flex; gap: .35rem; overflow-x: auto; padding: .3rem; margin-bottom: 1rem; background: #efe7d6; border-radius: 14px; position: sticky; top: 70px; z-index: 20; scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs a { flex: 1 0 auto; text-align: center; padding: .5rem 1rem; border-radius: 10px; text-decoration: none; color: var(--brand-brown); font-weight: 700; font-size: .86rem; white-space: nowrap; transition: background .15s, color .15s; }
.acct-tabs a.is-on { background: var(--brand-forest); color: #fff; box-shadow: 0 2px 8px rgba(45, 79, 74, .3); }
@media (max-width: 767px) { .acct-tabs { top: 62px; } }

.acct-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .acct-grid { grid-template-columns: 1fr 1fr; } .acct-card--wide { grid-column: 1 / -1; } }
.acct-card { background: #fff; border: 1px solid var(--border-color); border-radius: 20px; padding: 1.35rem; box-shadow: var(--shadow-sm); scroll-margin-top: 140px; }
.acct-card__head { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.acct-card__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #f4ecdc; color: var(--brand-gold-text); font-size: 1.15rem; }
.acct-card__head h2 { margin: 0; font-family: var(--font-display); font-size: 1.12rem; color: var(--brand-forest); }
.acct-card__head p { margin: .15rem 0 0; font-size: .84rem; color: var(--text-muted); }
.acct-actions { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.acct-foot { margin: 1rem 0 0; font-size: .8rem; color: var(--text-muted); }
.acct-remove { margin-top: .9rem; }
.acct-remove__btn { border: 0; background: none; color: #b42318; font-weight: 700; font-size: .84rem; padding: .3rem .1rem; }
.acct-remove__btn:hover { text-decoration: underline; }

.avatar-drop { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem; border: 2px dashed #d8c9aa; border-radius: 16px; background: #fcf9f1; transition: border-color .15s, background .15s; flex-wrap: wrap; }
.avatar-drop.is-over { border-color: var(--brand-green); background: #eef8f3; }
.avatar-drop__preview .avatar { --avatar: 96px !important; }
.avatar-drop__text { display: grid; gap: .45rem; justify-items: start; flex: 1 1 200px; min-width: 0; }
.avatar-drop__text span { font-size: .82rem; color: var(--text-muted); }

/* password fields (shared with sign-in and the school wizard) */
.pw-field { position: relative; }
.pw-field input { width: 100%; padding-right: 3rem; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--text-muted); border-radius: 10px; font-size: 1.05rem; }
.pw-eye:hover { background: #f4ecdc; color: var(--brand-forest); }

.pw-meter { margin-top: 1rem; padding: .9rem 1rem; background: #fcf9f1; border: 1px solid var(--border-color); border-radius: 14px; }
.pw-meter__top { display: flex; align-items: center; gap: .8rem; }
.pw-meter__bar { flex: 1; height: 8px; background: #eadfc9; border-radius: 6px; overflow: hidden; }
.pw-meter__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: #b42318; transition: width .3s var(--ease), background .3s; }
.pw-meter[data-level="1"] .pw-meter__bar i { width: 25%; background: #b42318; }
.pw-meter[data-level="2"] .pw-meter__bar i { width: 50%; background: #c98d4a; }
.pw-meter[data-level="3"] .pw-meter__bar i { width: 75%; background: #6aa06a; }
.pw-meter[data-level="4"] .pw-meter__bar i { width: 100%; background: var(--brand-green); }
.pw-meter__label { font-size: .78rem; font-weight: 700; color: var(--brand-brown); min-width: 8.5em; text-align: right; }
.pw-rules { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .82rem; color: var(--text-muted); }
.pw-rules li { display: flex; align-items: center; gap: .5rem; }
.pw-rules li.is-ok { color: var(--brand-green); font-weight: 600; }

.device-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.device { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border: 1px solid var(--border-color); border-radius: 14px; background: #fcf9f1; }
.device.is-current { background: #eef8f3; border-color: #bfe0cf; }
.device__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-forest); font-size: 1.2rem; box-shadow: var(--shadow-sm); }
.device__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.device__text strong { font-size: .9rem; color: var(--brand-forest); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.device__text span { font-size: .78rem; color: var(--text-muted); }

@media (max-width: 575px) {
  .acct-hero__body { padding: 0 1rem 1rem; justify-content: center; text-align: center; }
  .acct-hero__text { padding-top: .6rem; flex-basis: 100%; }
  .acct-hero__chips { justify-content: center; }
  .acct-card { padding: 1.1rem; }
  .pw-meter__label { min-width: 0; }
}
