/**
 * cdn/public_html/assets/css/auth.css
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --auth-font: var(--font-primary);
  --auth-mono: "SF Mono", "Fira Code", monospace;
  --auth-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --auth-t: 0.25s var(--auth-ease);
  --auth-text-muted: rgba(168, 168, 168, 0.65);
  --auth-text-faint: rgba(168, 168, 168, 0.4);
  --auth-hover-bg: rgba(255, 255, 255, 0.05);
  --auth-blue: #113dbf;
}

html,
body {
  height: 100%;
  font-family: var(--auth-font);
  background: #08090d;
  color: var(--prymary-color);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

.carousel-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: multiply;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: var(--auth-font);
  cursor: pointer;
  border: none;
  background: none;
}

.auth-root {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-card {
  position: relative;
  z-index: 10;
  width: 480px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 7rem);
  display: flex;
  background: rgba(17, 17, 17, 0.85);
  border: var(--border-all-color);
  overflow: hidden;
  animation: authFadeUp 0.5s var(--auth-ease) both;
}

.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  padding: 10px 30px;
}

.auth-left-inner {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 102, 102, 0.3) transparent;
}
.auth-left-inner::-webkit-scrollbar {
  width: 3px;
}
.auth-left-inner::-webkit-scrollbar-thumb {
  background: rgba(102, 102, 102, 0.3);
  border-radius: 2px;
}

.panel-header {
  padding: 0.875rem 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

.panel-tabs {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-all-color);
  padding: 3px;
  flex: 1;
}

.panel-tab {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-text-muted);
  cursor: pointer;
  transition: all var(--auth-t);
  font-family: var(--auth-font);
}
.panel-tab.active {
  background: var(--auth-hover-bg);
  color: var(--text-title);
  font-weight: 600;
}

.panel-tab--artist {
  display: flex;
  align-items: center;
  color: var(--text-color);
  gap: 5px;
  flex: 0 0 auto;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.2s ease-out;
}
.panel-tab--artist.active {
  color: var(--text-color);
  opacity: 1;
}

.panel-recover-header,
.panel-verify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.75rem;
  border-bottom: var(--border-all-color);
  flex-shrink: 0;
}

.recover-back-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--auth-font);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s;
  padding: 0;
}
.recover-back-btn:hover {
  opacity: 0.7;
}

.recover-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--auth-text-muted);
  letter-spacing: 0.06em;
}

.panel-views {
  position: relative;
  overflow: hidden;
}

.panel-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 30px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--auth-ease),
    transform 0.3s var(--auth-ease);
  will-change: opacity, transform;
}
.panel-view.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.view-title {
  margin-bottom: 1.25rem;
  text-align: left;
}
.view-title h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--h2-text-color);
  text-align: left;
  margin-bottom: 8px;
}
.view-title p {
  font-size: 14px;
  font-weight: 300;
  color: var(--prymary-color);
  text-align: left;
  margin-bottom: 0;
}
.view-title p:last-child {
  margin-bottom: 8px;
}

.view-title p.view-mode-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--auth-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.ltb-btn.ltb-display {
  display: none;
  cursor: default;
  color: var(--auth-text-muted);
  font-size: 14px;
  font-weight: 300;
  text-align: left;
}
.ltb-btn.ltb-display:hover {
  color: var(--auth-text-muted);
}
.ltb-btn.ltb-display.active {
  display: block;
}

.field {
  margin-bottom: 0.75rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field label .req {
  color: var(--color-attention);
  margin-left: 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.input-wrap {
  position: relative;
}

.field input,
.auth-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--input-bg-color);
  border: 1px solid rgba(102, 102, 102, 0.1);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--prymary-color);
  font-family: var(--auth-font);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.auth-textarea {
  height: auto;
  resize: none;
  display: block;
}
.field input::placeholder,
.auth-textarea::placeholder {
  color: var(--auth-text-faint);
  font-weight: 300;
}

.field input:focus,
.auth-textarea:focus {
  border-color: rgba(0, 204, 153, 0.3);
}

.field input.has-toggle {
  padding-right: 2.5rem;
}

.field input.error {
  border-color: var(--color-attention);
}

.field-error {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-attention);
  margin-top: 0.2rem;
  display: none;
  font-family: var(--font-secondary);
}
.field-error.visible {
  display: block;
}

.field-hint {
  font-size: 0.68rem;
  color: var(--auth-text-muted);
  margin-top: 0.2rem;
  display: none;
}

.pw-toggle {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--auth-text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  padding: 0.2rem;
  transition: color 0.2s;
}
.pw-toggle:hover {
  color: var(--prymary-color);
}

.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--text-color);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.text-link {
  font-size: 0.8125rem;
  color: var(--auth-text-muted);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}
.text-link:hover {
  color: var(--prymary-color);
}

.terms-check {
  margin-bottom: 0.875rem;
}
.terms-check .checkbox-label {
  font-size: 0.78rem;
  line-height: 1.5;
  align-items: flex-start;
}
.terms-check .checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

.field-error#registerTermsErr,
.field-error#artistTermsErr {
  display: none;
}
.field-error#registerTermsErr.visible,
.field-error#artistTermsErr.visible {
  display: block;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.button-group .btn-primary,
.button-group #loginGoogleWrap,
.button-group .btn-google {
  width: auto;
}
.button-group .btn-primary {
  flex: 1;
}
.button-group .btn-google {
  padding: 0 1rem;
}

#loginForm .button-group,
#registerForm .button-group,
#registerArtistForm .button-group {
  flex-direction: column;
}
#loginForm .button-group .btn-primary,
#registerForm .button-group .btn-primary,
#registerArtistForm .button-group .btn-primary {
  flex: none;
  width: 100%;
}
#loginForm .button-group #loginGoogleWrap,
#registerForm .button-group .btn-google,
#registerArtistForm .button-group .btn-google {
  align-self: flex-start;
}

.btn-primary {
  width: 100%;
  height: 44px;
  background: var(--auth-blue);
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: var(--auth-font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.3s ease;
}
.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-box-btn-login);
  transform: translateY(-2px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary--artist {
  background: var(--color-attention);
}
.btn-primary--artist:hover:not(:disabled) {
  box-shadow: none;
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}

.btn-google {
  width: 100%;
  height: 42px;
  background: var(--input-bg-color);
  border: var(--border-all-color);
  color: var(--prymary-color);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--auth-font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: all 0.3s ease;
}
.btn-google:hover:not(:disabled) {
  border-color: rgba(0, 204, 153, 0.3);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.875rem 0;
  color: var(--auth-text-faint);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(102, 102, 102, 0.2);
}

.msg-box {
  padding: 0.65rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: none;
  margin-top: 0.625rem;
}
.msg-box.error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger);
  border: none;
  padding: 0.875rem 1.25rem;
}
.msg-box.success {
  display: block;
  background: var(--success-bg);
  color: var(--text-color);
  border: none;
}

.panel-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--auth-text-muted);
}

.artist-notice {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.875rem 1.25rem;
  background: var(--danger-bg);
  border: none;
  font-size: 0.78rem;
  color: var(--auth-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.login-type-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ltb-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-text-muted);
  cursor: pointer;
  transition: color 0.15s;
  font-family: var(--auth-font);
}
.ltb-btn:hover {
  color: var(--text-color-hover);
}
.ltb-btn i {
  font-size: 0.82rem;
}
.auth-card-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--auth-ease);
}
.auth-card-loading.active {
  opacity: 1;
  pointer-events: auto;
}
.auth-card-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(168, 168, 168, 0.25);
  border-top-color: var(--text-color);
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}
.ltb-btn.active {
  display: none;
}

.auth-pwd-strength-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.auth-pwd-strength-bar {
  flex: 1;
  height: 3px;
  background: rgba(102, 102, 102, 0.2);
  position: relative;
  overflow: hidden;
}
.auth-pwd-strength-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  transition:
    width 0.4s var(--auth-ease),
    background 0.4s var(--auth-ease);
}
.auth-pwd-strength-bar.s1::after {
  width: 25%;
  background: var(--color-attention);
}
.auth-pwd-strength-bar.s2::after {
  width: 50%;
  background: #b8934a;
}
.auth-pwd-strength-bar.s3::after {
  width: 75%;
  background: #3498db;
}
.auth-pwd-strength-bar.s4::after {
  width: 100%;
  background: var(--text-color);
}

.auth-pwd-strength {
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  min-width: 4.5rem;
  text-align: right;
}
.strength-weak {
  color: var(--color-attention);
}
.strength-fair {
  color: #b8934a;
}
.strength-good {
  color: #3498db;
}
.strength-strong {
  color: var(--text-color);
}

.code-row {
  display: flex;
  gap: 0.45rem;
  margin: 1rem 0;
}

.code-box {
  flex: 1;
  width: 38px;
  height: 46px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--input-bg-color);
  border: 1px solid rgba(102, 102, 102, 0.1);
  color: var(--prymary-color);
  font-family: var(--auth-mono);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.code-box:focus {
  border-color: rgba(0, 204, 153, 0.3);
}
.code-box.error {
  border-color: var(--color-attention);
}

.timer-row {
  text-align: center;
  font-size: 0.8rem;
  color: var(--auth-text-faint);
  margin-top: 0.625rem;
}

.username-wrap {
  position: relative;
}

.username-prefix {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-text-faint);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 1;
}

.field input.username-field {
  padding-left: 1.65rem !important;
}
.field input.username-field:focus {
  border-color: rgba(0, 204, 153, 0.3) !important;
}

.username-status {
  font-size: 0.68rem;
  font-weight: 500;
  margin-top: 0.2rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.username-status.checking {
  display: flex;
  color: var(--auth-text-faint);
}
.username-status.available {
  display: flex;
  color: var(--text-color);
}
.username-status.taken {
  display: flex;
  color: var(--color-attention);
}
.username-status i {
  font-size: 0.75rem;
}

.optional-group {
  margin-bottom: 0.75rem;
}

.optional-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--auth-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--auth-font);
  padding: 0.2rem 0;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.optional-toggle:hover {
  color: var(--text-color);
}
.optional-toggle i {
  font-size: 0.75rem;
}

.optional-fields {
  display: none;
  animation: authFadeUp 0.22s var(--auth-ease) both;
}

.recaptcha-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--auth-text-faint);
  margin-top: 0.75rem;
}
.recaptcha-hint i {
  font-size: 0.8rem;
}

.g-recaptcha {
  filter: invert(1) hue-rotate(180deg);
  overflow: hidden;
}

.google-only-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  min-height: 300px;
  width: 100%;
}

.google-only-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-all-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-only-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--prymary-color);
  margin: 0;
  line-height: 1.3;
}

.google-only-desc {
  font-size: 0.875rem;
  color: var(--auth-text-muted);
  margin: 0;
  max-width: 300px;
  line-height: 1.5;
}

.btn-google--large {
  width: 100%;
  max-width: 320px;
  padding: 0.875rem 1.5rem !important;
  font-size: 1rem !important;
  gap: 0.875rem !important;
  justify-content: center;
}

.auth-maintenance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem 1.75rem;
  text-align: center;
  gap: 0.75rem;
}
.auth-maintenance h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--auth-text-muted);
  letter-spacing: -0.02em;
}
.auth-maintenance p {
  font-size: 0.8125rem;
  color: var(--auth-text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.auth-maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-attention);
  letter-spacing: 0.05em;
  background: rgba(154, 107, 88, 0.08);
  border: 1px solid rgba(154, 107, 88, 0.2);
}

.terms-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--auth-ease);
}
.terms-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.terms-modal {
  background: #08090d;
  border: var(--border-all-color);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(0.98);
  transition:
    transform 0.28s var(--auth-ease),
    opacity 0.28s var(--auth-ease);
  opacity: 0;
}
.terms-modal-backdrop.open .terms-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.terms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.875rem;
  border-bottom: var(--border-all-color);
  flex-shrink: 0;
}
.terms-modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--prymary-color);
}
.terms-modal-header-title i {
  font-size: 1rem;
  color: var(--text-color);
}

.terms-modal-close {
  width: 28px;
  height: 28px;
  border: var(--border-all-color);
  background: var(--input-bg-color);
  color: var(--auth-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.terms-modal-close:hover {
  border-color: rgba(154, 107, 88, 0.4);
  color: var(--color-attention);
}

.terms-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 102, 102, 0.3) transparent;
}
.terms-modal-body::-webkit-scrollbar {
  width: 4px;
}
.terms-modal-body::-webkit-scrollbar-thumb {
  background: rgba(102, 102, 102, 0.3);
  border-radius: 2px;
}

.modal-terms-content h1 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--prymary-color);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.modal-terms-date {
  font-size: 0.72rem;
  color: var(--auth-text-faint);
  margin-bottom: 1.25rem;
  display: block;
}
.modal-terms-content h2 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.07em;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.modal-terms-content p {
  font-size: 0.82rem;
  color: var(--auth-text-muted);
  line-height: 1.7;
  margin-bottom: 0.625rem;
}
.modal-terms-content ul {
  margin: 0.375rem 0 0.625rem 1.1rem;
  padding: 0;
}
.modal-terms-content ul li {
  font-size: 0.82rem;
  color: var(--auth-text-muted);
  line-height: 1.7;
  margin-bottom: 0.2rem;
}
.modal-terms-content strong {
  color: var(--prymary-color);
  font-weight: 600;
}

.terms-modal-footer {
  padding: 0.875rem 1.25rem;
  border-top: var(--border-all-color);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.terms-modal-footer .btn-primary {
  width: auto;
  height: 38px;
  padding: 0 1.25rem;
  font-size: 0.8125rem;
}

.global-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  top: 2rem;
}
.global-footer-links {
  display: flex;
  gap: 1.25rem;
}
.global-footer a,
.global-footer-copy {
  font-size: 0.7rem;
  color: var(--auth-text-faint);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.global-footer a:hover {
  color: var(--auth-text-muted);
}

.auth-lang-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 50px;
  padding: 5px 8px;
  border: var(--border-all-color);
  background: var(--input-bg-color);
  cursor: pointer;
  transition: border-color 0.2s;
}
.auth-lang-btn:hover {
  border-color: rgba(0, 204, 153, 0.3);
}
.auth-lang-flag {
  width: 14px;
  height: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.auth-lang-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--auth-text-muted);
}
.auth-lang-modal {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: #08090d;
  border: var(--border-all-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
  padding: 4px;
}
.auth-lang-modal.open {
  display: block;
}
.auth-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--prymary-color);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.auth-lang-option:hover {
  background: var(--auth-hover-bg);
}
.auth-lang-option.active {
  color: var(--text-color);
  font-weight: 600;
}

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes authShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}
.shake {
  animation: authShake 0.38s var(--auth-ease);
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .auth-root {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    justify-content: flex-start;
    padding-bottom: 1rem;
  }

  .auth-card {
    width: 100%;
    max-width: 480px;
    max-height: none;
    margin: 1rem auto;
  }

  .global-footer {
    padding: 0.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    max-width: calc(100vw - 1.5rem);
    margin: 0.75rem auto;
  }
  .panel-view {
    padding: 1.1rem 1.25rem 1.25rem;
  }
  .panel-header {
    padding: 0.75rem 1.25rem 0;
  }
  .terms-modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;
  }
}
