/* ========== Πάνελ Σύνδεσης / Εγγραφής ========== */

.is-hidden{ display:none !important; }

.gh-auth-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10,14,28,.6);
  z-index: 1001;
}

.gh-auth-drawer{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background: var(--ink-2);
  border-left: 1px solid var(--ink-3);
  z-index: 1002;
  padding: 28px 24px;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform .22s ease;
}
.gh-auth-drawer.is-hidden{
  transform: translateX(100%);
  pointer-events: none;
}
.gh-auth-overlay.is-hidden{
  display: none;
}

/* Όταν κρυμμένο, να μην πιάνει clicks ούτε να είναι focusable */
.gh-auth-drawer.is-hidden *{
  visibility: hidden;
}

.gh-auth-close{
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--paper-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.gh-auth-close:hover{ color: var(--paper); }

.gh-auth-tabs{
  display: flex;
  gap: 6px;
  margin: 20px 0 24px;
  border-bottom: 1px solid var(--ink-3);
}
.gh-auth-tabbtn{
  flex: 1;
  background: none;
  border: none;
  color: var(--paper-dim);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.gh-auth-tabbtn.is-active{
  color: var(--paper);
  border-bottom-color: var(--amber);
}

.gh-auth-title{
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--paper);
  margin: 6px 0 20px;
}
.gh-auth-hint{
  color: var(--paper-dim);
  font-size: 14px;
  margin: -10px 0 20px;
  line-height: 1.5;
}

.gh-auth-switch{
  margin-top: 16px;
  font-size: 14px;
  color: var(--paper-dim);
  text-align: center;
}
.gh-auth-inline-link{
  background: none;
  border: none;
  color: var(--amber);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.gh-auth-inline-link:hover,
.gh-auth-inline-link:focus-visible{
  text-decoration: underline;
}

.gh-auth-form .tavli-field{ margin-bottom: 16px; }
.gh-auth-form .btn{ width: 100%; margin-top: 6px; }

/* Πεδία φόρμας — αυτοτελές στυλ, ώστε να δουλεύει σε κάθε σελίδα του site
   (όχι μόνο εκεί που φορτώνει το tavli.css). */
.gh-auth-drawer .tavli-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:16px;
}
.gh-auth-drawer .tavli-field label{
  font-size: 13px;
  font-weight:600;
  color: var(--paper-dim);
}
.gh-auth-drawer .tavli-field input{
  background: var(--ink);
  border: 1px solid var(--ink-3);
  color: var(--paper);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  width: 100%;
  box-sizing: border-box;
}
.gh-auth-drawer .tavli-field input:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.gh-auth-error{
  color: var(--coral);
  font-size: 13px;
  margin: -6px 0 12px;
  min-height: 16px;
}
.gh-auth-error.is-success{
  color: var(--teal, #34C9A3);
}

.gamehub-verify-notice{
  max-width: 1220px;
  margin: 18px auto 0;
  padding: 14px 20px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  color: var(--paper);
  font-size: 14px;
}

.gh-auth-forgot-link{
  display: block;
  text-align: right;
  margin: -10px 0 18px;
}

.gh-auth-loggedin{
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gh-auth-loggedin .btn{ width: 100%; }
.gh-auth-welcome{
  color: var(--paper);
  font-size: 16px;
  margin-bottom: 20px;
}

@media (max-width: 600px){
  .gh-auth-drawer{
    width: 100vw;
    border-left: none;
    padding: 24px 20px;
  }
}
