/* Auth modal + language switcher */
.tr-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 8, 20, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tr-auth-overlay[hidden] { display: none !important; }

.tr-auth-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  color: #e2e8f0;
}

.tr-auth-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.tr-auth-close:hover { color: #fff; }

.tr-auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tr-auth-tab {
  flex: 1;
  padding: 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid #1e293b;
  background: #0a192f;
  color: #94a3b8;
  font-weight: 600;
  cursor: pointer;
}
.tr-auth-tab.is-active {
  background: linear-gradient(90deg, #22d3ee, #2dd4bf);
  color: #0f172a;
  border-color: transparent;
}

.tr-auth-form label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
  color: #94a3b8;
}
.tr-auth-form input[type="text"],
.tr-auth-form input[type="email"],
.tr-auth-form input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid #334155;
  background: #0a192f;
  color: #f1f5f9;
  font-size: 1rem;
  box-sizing: border-box;
}
.tr-auth-form input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34,211,238,0.2);
}

.tr-auth-check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}
.tr-auth-check input { width: auto; margin: 0; }

.tr-auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #22d3ee, #2dd4bf);
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.tr-auth-submit:hover { filter: brightness(1.08); }
.tr-auth-submit:disabled { opacity: 0.6; cursor: wait; }

.tr-auth-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}
.tr-auth-link {
  background: none;
  border: none;
  color: #22d3ee;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.tr-auth-msg {
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.tr-auth-msg.is-error { background: rgba(239,68,68,0.15); color: #fca5a5; }
.tr-auth-msg.is-ok { background: rgba(34,211,238,0.15); color: #67e8f9; }

/* Language switcher active state */
.tr-lang-btn {
  cursor: pointer;
  transition: color 0.15s;
}
.tr-lang-btn.is-active {
  color: #22d3ee !important;
  font-weight: 700;
}
.tr-lang-btn:not(.is-active) {
  color: #94a3b8;
}
.tr-lang-btn:not(.is-active):hover {
  color: #fff;
}

/* Login trigger */
.tr-login-trigger { cursor: pointer; }
