/**
 * NeuroResin — User Auth Modal Styles
 */
.nr-um-backdrop {
  position: fixed; inset: 0; z-index: 99998;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(13,10,8,.72);
  backdrop-filter: blur(8px);
}
.nr-um-backdrop.is-open { display: flex; }

.nr-um-dialog {
  width: min(440px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(82,75,68,.3);
  background: #1f1b16;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  color: #fff5eb;
  padding: 28px;
}

.nr-um-head {
  display: flex; justify-content: space-between; gap: 16px;
  align-items: flex-start; margin-bottom: 24px;
}
.nr-um-eyebrow {
  font: 500 11px/1.2 'IBM Plex Mono', monospace;
  letter-spacing: .14em; text-transform: uppercase;
  color: #524b44; margin: 0 0 8px;
}
.nr-um-title {
  font: 300 clamp(1.3rem, 2vw, 1.6rem)/1.1 'Inter', sans-serif;
  letter-spacing: -.03em; margin: 0;
}
.nr-um-copy {
  margin: 6px 0 0;
  color: #bab4ad; font-size: .9rem; line-height: 1.5;
}
.nr-um-close {
  width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(82,75,68,.3);
  background: transparent; color: #bab4ad;
  font-size: 20px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.nr-um-close:hover { border-color: #fff5eb; color: #fff5eb; }

.nr-um-form { margin-bottom: 16px; }
.nr-um-fields { display: grid; gap: 14px; }
.nr-um-field { display: grid; gap: 6px; }
.nr-um-field label {
  font: 500 10px/1.2 'IBM Plex Mono', monospace;
  letter-spacing: .12em; text-transform: uppercase;
  color: #524b44;
}
.nr-um-input {
  width: 100%; min-height: 44px;
  border-radius: 12px; border: 1px solid rgba(82,75,68,.4);
  background: rgba(13,10,8,.5);
  color: #fff5eb; font: 400 14px/1.4 'Inter', sans-serif;
  padding: 0 14px;
  transition: border-color .2s;
}
.nr-um-input::placeholder { color: #524b44; }
.nr-um-input:focus { outline: none; border-color: #c26a61; }

.nr-um-actions {
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px; margin-top: 20px;
  flex-wrap: wrap;
}
.nr-um-forgot {
  font-size: .84rem; color: #bab4ad;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.nr-um-forgot:hover { color: #fff5eb; }

.nr-um-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 24px;
  border-radius: 12px; border: 1px solid rgba(82,75,68,.4);
  background: transparent; color: #fff5eb;
  font: 500 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.nr-um-btn:hover { border-color: #fff5eb; }
.nr-um-btn:disabled { opacity: .5; pointer-events: none; }
.nr-um-btn--primary {
  border-color: #0d0a08; background: #fff5eb; color: #0d0a08;
}
.nr-um-btn--primary:hover { background: #ebe0d5; }

.nr-um-msg {
  font-size: .88rem; line-height: 1.5;
  margin-bottom: 16px; min-height: 1.5em;
  color: #bab4ad;
}
.nr-um-msg.is-ok { color: #4ade80; }
.nr-um-msg.is-err { color: #ff6b6b; }

/* Success state */
.nr-um-success{text-align:center;padding:20px 0}
.nr-um-success__icon{
  width:56px;height:56px;border-radius:50%;
  background:rgba(74,222,128,.15);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;font-size:24px;color:#4ade80;
}
.nr-um-success__title{
  font:300 1.3rem/1.1 'Inter',sans-serif;
  letter-spacing:-.03em;margin-bottom:8px;
}
.nr-um-success__copy{
  color:#bab4ad;font-size:.92rem;line-height:1.5;
}

.nr-um-foot {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(82,75,68,.3);
}
.nr-um-foot p {
  font-size: .88rem; color: #524b44;
}
.nr-um-foot a {
  color: #bab4ad; text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.nr-um-foot a:hover { color: #fff5eb; }

/* Nav login button */
.gsn-topbar__login,
.gsn-topbar__login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(82,75,68,.4);
  background: transparent; color: #bab4ad;
  font: 500 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.gsn-topbar__login:hover,
.gsn-topbar__login-btn:hover {
  border-color: #fff5eb; color: #fff5eb;
}
.gsn-topbar__login svg,
.gsn-topbar__login-btn svg { width: 14px; height: 14px; }

/* Nav user menu (logged in) */
.gsn-topbar__user {
  display: flex; align-items: center; gap: 12px;
}
.gsn-topbar__user-name {
  font: 500 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: .08em; text-transform: uppercase;
  color: #bab4ad;
}
.gsn-topbar__user-studio {
  font: 500 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff5eb; text-decoration: none;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(82,75,68,.3);
  transition: all .2s;
}
.gsn-topbar__user-studio:hover { border-color: #fff5eb; }
.gsn-topbar__user-logout {
  font: 500 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: .08em; text-transform: uppercase;
  color: #524b44; background: none; border: none;
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.gsn-topbar__user-logout:hover { color: #ff6b6b; }

@media (max-width: 720px) {
  .nr-um-dialog { padding: 20px; }
  .nr-um-actions { flex-direction: column; align-items: stretch; }
  .nr-um-forgot { text-align: center; }
}
