/* RG Auth: localized connected-account component; Bricks typography inherited. */
.rg-auth-connections {
  max-width: 760px; border: 1px solid #eaddef; border-radius: 16px;
  background: #fcf8fd; padding: clamp(16px,2vw,24px);
  font: inherit; color: #29242e;
}
.rg-auth-connections h3 { margin:0 0 12px; font-size:20px; }
.rg-auth-connections p { margin:0 0 14px; font-size:14px; line-height:1.55; }
.rg-auth-connections__notice {
  padding:12px 14px; border-radius:10px; border:1px solid #e6d4ee;
  background: #f7edf9; color:#643b79;
}
.rg-auth-connections form { display:flex; flex-direction:column; gap:10px; max-width:380px; }
.rg-auth-connections label { font-size:14px; font-weight:650; }
.rg-auth-connections input[type="password"] {
  width:100%; min-height:44px; padding:10px 13px; font:inherit;
  border:1px solid #d9c9e0; border-radius:10px; background:white; color:#29242e;
}
.rg-auth-connections button {
  width:max-content; max-width:100%; min-height:44px; padding:10px 17px;
  background:#9142a0; border:1px solid #9142a0; border-radius:10px;
  color:white; cursor:pointer; font:inherit; font-size:14px; font-weight:700;
}
.rg-auth-connections button:hover { background:#7b338c; color:white; }
.rg-auth-connections button:focus-visible,
.rg-auth-connections input:focus-visible { outline:2px solid #9142a0; outline-offset:3px; }

/* Social sign-in panel — initially Yandex, expandable to VK ID/Telegram.
   Buttons are genuine POST forms, not decorative links. */
.rg-auth-social {
  --rg-auth-accent: #954ba7;
  --rg-auth-outline: #e7d9eb;
  max-width: 660px;
  margin: 24px auto;
  padding: 0;
  font: inherit;
  color: #3c2945;
}
.rg-auth-social__divider {
  display:flex; align-items:center; justify-content:center;
  gap:14px; margin-bottom:18px;
  color:#85788c; font-size:13px; line-height:1.5; text-align:center;
}
.rg-auth-social__divider::before,
.rg-auth-social__divider::after {
  content:""; display:block; flex:1; max-width:180px;
  height:1px; background:var(--rg-auth-outline);
}
.rg-auth-social__providers {
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:12px; align-items:stretch;
}
.rg-auth-social__providers form { flex:1 1 190px; max-width:220px; min-width:0; margin:0; padding:0; }
.rg-auth-social__provider {
  display:flex; flex-direction:row; align-items:center;
  justify-content:center; gap:11px; width:100%;
  min-height:52px; padding:11px 15px;
  border:1px solid #e4d6e9; border-radius:13px;
  color:#35283e; background:linear-gradient(180deg,#fff 0%,#fdfafe 100%);
  box-shadow:0 3px 12px rgba(81,48,91,.04);
  font:inherit; font-size:14px; font-weight:700; line-height:1.4;
  cursor:pointer;
  transition:transform .15s ease, border-color .15s ease,box-shadow .15s ease;
}
.rg-auth-social__provider:hover {
  background:#fbf6fc; border-color:#cdaed8; color:#35283e;
  box-shadow:0 6px 18px rgba(87,43,103,.10);
  transform:translateY(-1px);
}
.rg-auth-social__provider:focus-visible {
  outline:2px solid #954ba7; outline-offset:3px;
}
.rg-auth-social__provider:active { transform:translateY(0); }
.rg-auth-social__icon {
  display:inline-grid; place-items:center;
  flex:none; width:28px; height:28px; border-radius:9px;
  font-size:21px; font-weight:800; line-height:1;
}
.rg-auth-social__icon--yandex {
  color:#ff3434; background:rgba(255,50,50,.075);
}
.rg-auth-social__hint {
  margin:12px auto 0; max-width:550px;
  color:#83738c; font-size:12px; line-height:1.5;
  text-align:center;
}
.rg-auth-connections .rg-auth-connections__unlink {
  color:#754476; background:#fff; border:1px solid #e8d7e9;
}
.rg-auth-connections .rg-auth-connections__unlink:hover {
  color:#6a316e; background:#faf2fb; border-color:#cdaed8;
}
@media (max-width:480px) {
  .rg-auth-social { margin:18px auto; }
  .rg-auth-social__providers form { flex-basis:100%; }
  .rg-auth-social__provider { min-height:48px; }
}
@media (prefers-reduced-motion:reduce) {
  .rg-auth-social__provider { transition:none; }
}


/* UsersWP bootstrap account compatibility: social users without email.
   Scoped to plugin-owned markup and matching the existing RG account design. */
.rg-auth-profile { max-width:100%; color:#34273d; }
.rg-auth-profile__hint {
  margin:0 0 20px; color:#71627a; font-size:14px; line-height:1.6;
}
.rg-auth-profile form { display:flex; flex-direction:column; gap:10px; }
.rg-auth-profile label {
  display:block; color:#33233c; font:inherit; font-size:14px; font-weight:700;
  margin:4px 0 0;
}
.rg-auth-profile input[type="text"],
.rg-auth-profile textarea {
  display:block; width:100%; min-width:0;
  border:1px solid #e6d3ed; border-radius:13px;
  background:#fff; color:#34263c;
  padding:12px 14px; min-height:46px; font:inherit; font-size:14px;
  box-sizing:border-box;
}
.rg-auth-profile textarea { min-height:118px; resize:vertical; }
.rg-auth-profile input[type="text"]:focus-visible,
.rg-auth-profile textarea:focus-visible {
  outline:2px solid #a052b2; outline-offset:1px;
}
.rg-auth-profile__help {
  margin:0 0 8px; font-size:13px; line-height:1.5; color:#7d7087;
}
.rg-auth-profile__button {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; align-self:flex-start; padding:12px 22px;
  font:inherit; font-size:14px; font-weight:700; line-height:1.4;
  background:#9845ab; color:#fff; border:1px solid #9845ab;
  border-radius:12px; cursor:pointer;
}
.rg-auth-profile__button:hover { background:#813595; color:#fff; }
.rg-auth-profile__button:focus-visible { outline:2px solid #813595; outline-offset:3px; }
.rg-auth-profile__notice {
  border:1px solid #dec7e6; padding:11px 14px;
  border-radius:12px; background:#fbf5fd; color:#6e3b82;
  font-size:14px; line-height:1.5;
}
@media (max-width:480px) {
  .rg-auth-profile__button { width:100%; }
}


/* Public handle editor: reserved WordPress nicename, not internal login. */
.rg-auth-public-alias {
  margin-top:28px; border-top:1px solid #e6d9ed; padding-top:24px;
}
.rg-auth-public-alias h3 { margin:0 0 10px; font-size:18px; line-height:1.4; font-weight:750; }
.rg-auth-public-alias > p { margin:0 0 18px; color:#75657e; font-size:14px; line-height:1.6; }
.rg-auth-public-alias form { display:flex; flex-direction:column; gap:10px; }
.rg-auth-public-alias label { display:block; font-size:14px; font-weight:700; }
.rg-auth-public-alias__input {
  display:flex; align-items:center; min-height:46px;
  width:100%; box-sizing:border-box; background:#fff;
  border:1px solid #e6d3ed; border-radius:13px;
  overflow:hidden;
}
.rg-auth-public-alias__input > span {
  display:grid; place-items:center; width:42px; flex:none;
  font-size:17px; font-weight:800; color:#9845ab;
}
.rg-auth-public-alias__input input {
  display:block; width:100%; min-width:0; margin:0; padding:11px 14px 11px 0;
  border:0; background:transparent; color:#34263c;
  font:inherit; font-size:14px; outline:0;
}
.rg-auth-public-alias__input:focus-within {
  outline:2px solid #a052b2; outline-offset:1px;
}
.rg-auth-public-alias__input:has(input:disabled) { opacity:.65; background:#f5f0f8; }
/* Single quiet line: rules until a real availability result arrives. */
.rg-auth-public-alias__status {
  margin:-3px 0 2px; min-height:18px;
  font-size:12px; line-height:1.5; font-weight:500; color:#82748a;
}
.rg-auth-public-alias__status[data-status="available"] { color:#397956; }
.rg-auth-public-alias__status[data-status="taken"] { color:#a34256; }
.rg-auth-public-alias__status[data-status="checking"] { color:#786581; }
.rg-auth-public-alias code { background:transparent; color:#7a3a91; }
.rg-auth-public-alias .rg-auth-profile__button { border-radius:12px; }


/* One free public nickname choice: quiet but unmistakable explanation. */
.rg-auth-public-alias__warning {
  padding:15px 17px; border:1px solid #e5d2ea;
  border-radius:14px; background:#faf4fc;
  color:#46324e; line-height:1.6;
}
.rg-auth-public-alias__warning strong { display:block; font-size:14px; }
.rg-auth-public-alias__warning p {
  margin:5px 0 0; font-size:14px; line-height:1.6;
}
.rg-auth-public-alias .rg-auth-public-alias__ack {
  display:flex; align-items:flex-start; gap:10px;
  margin:8px 0 12px; font-weight:500;
  color:#403349; font-size:14px; line-height:1.6;
  cursor:pointer;
}
.rg-auth-public-alias__ack input[type="checkbox"] {
  appearance:auto; flex:none; width:17px; height:17px;
  margin:3px 0 0; accent-color:#9845ab;
}
.rg-auth-public-alias__ack span { min-width:0; }
.rg-auth-public-alias__chosen {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:10px; padding:15px 18px; border:1px solid #e6d3ed;
  border-radius:14px; background:#fcf9fe;
}
.rg-auth-public-alias__chosen strong {
  display:block; overflow-wrap:anywhere; font-size:19px;
  font-weight:800; color:#33233c;
}
.rg-auth-public-alias__chosen a {
  font-size:14px; font-weight:700; color:#943ea8; text-decoration:underline;
}
.rg-auth-public-alias__chosen a:focus-visible { outline:2px solid #943ea8; outline-offset:3px; }
.rg-auth-public-alias__locked {
  margin:12px 0 0!important; color:#71627a; font-size:14px;
  line-height:1.6;
}
.rg-auth-public-alias__current {
  padding:12px 15px; border-radius:12px;
  background:#fbf6fc; border:1px solid #ead9ef;
  overflow-wrap:anywhere; font-size:14px;
}
.rg-auth-public-alias__current code {
  overflow-wrap:anywhere; word-break:break-word;
}
.rg-auth-public-alias__chosen strong {
  font-size:clamp(13px, 2vw, 17px);
  overflow-wrap:anywhere; word-break:break-word;
}
/* Bricks account presets may override the standard form button border radius. */
.rg-auth-profile .rg-auth-profile__button {
  border-radius:12px!important;
}

/* Account sidebar: readable profile name plus the actual public @address.
   Plugin markup only; ordinary UsersWP links outside our override are untouched. */
.rg-account .col-lg-3 .bg-light > .d-flex:first-child > a.rg-auth-account-identity {
  display:flex !important; flex-direction:column; align-items:center; gap:3px;
  max-width:100%; text-align:center; line-height:1.35;
}
.rg-auth-account-identity__name {
  display:block; max-width:100%; overflow-wrap:anywhere;
  font-size:16px; font-weight:750; color:#302538;
}
.rg-auth-account-identity__handle,
.rg-auth-account-identity__hint {
  display:block; max-width:100%; overflow-wrap:anywhere;
  font-size:13px; font-weight:550; color:#8a6591;
}
.rg-account .rg-auth-account-identity:hover .rg-auth-account-identity__name,
.rg-account .rg-auth-account-identity:hover .rg-auth-account-identity__handle {
  color:#9845ab;
}
.rg-auth-account-identity:focus-visible { outline:2px solid #9845ab; outline-offset:3px; }


/* Public profile: reuse UsersWP's native title hook, no Bricks global overrides.
   Keep the edit pencil beside the name and present separate quiet metadata lines. */
.rg-profile .uwp-profile-title h2 .rg-auth-public-profile-meta {
  display:block;
  margin-top:8px;
  font-family:inherit;
  font-size:14px !important;
  font-weight:500 !important;
  line-height:1.5 !important;
  letter-spacing:normal;
  text-transform:none;
  overflow-wrap:anywhere;
}
.rg-profile .uwp-profile-title h2 .rg-auth-public-profile-meta__handle,
.rg-profile .uwp-profile-title h2 .rg-auth-public-profile-meta__since {
  display:block;
  font:inherit;
  color:#786581;
}
.rg-profile .uwp-profile-title h2 .rg-auth-public-profile-meta__handle {
  color:#9341b2;
  font-weight:600;
}
@media (max-width:767px) {
  .rg-profile .uwp-profile-title h2 .rg-auth-public-profile-meta {
    margin-top:6px;
    font-size:13px !important;
    line-height:1.5 !important;
  }
}
