/* ---------- Auth base ---------- */
body.auth-page {
  background: #111;
  color: #eee;
  font-family: Arial, sans-serif;

  margin: 0;
  padding: 40px 18px 18px;

  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding-top: 60px;
}

h1 {
  color: #00ff99;
  margin: 0 0 10px 0;
}

/* ---------- Auth container ---------- */
.auth-box {
  background: #222;
  padding: 24px;
  border-radius: 10px;

  max-width: 420px;
  width: 100%;

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.auth-hint {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.35;
}

/* ---------- Form ---------- */
label {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  box-sizing: border-box;

  padding: 9px 10px;
  margin-top: 6px;

  border-radius: 6px;
  border: 1px solid #555;

  background: #111;
  color: #eee;
}

input:focus {
  outline: none;
  border-color: #00ff99;
}

/* Primary buttons */
button,
.primary-btn {
  margin-top: 16px;
  width: 100%;

  padding: 10px 16px;
  border: none;
  border-radius: 6px;

  background: #00ff99;
  color: #000;

  cursor: pointer;
  font-weight: bold;
}

button:hover,
.primary-btn:hover {
  background: #00e08a;
}

/* ---------- Messages ---------- */
.auth-error {
  color: #ff5555;
  margin-top: 10px;
  font-size: 0.9rem;
}

.auth-message {
  color: #6bffb8;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ---------- Links ---------- */
.auth-links {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
}

.auth-links p {
  margin: 8px 0;
}

a {
  color: #66aaff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Divider ---------- */
.divider {
  margin: 22px 0 16px;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

.divider span {
  position: relative;
  padding: 0 10px;
}

.divider span::before,
.divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 999px;
  height: 1px;
  background: #333;
}

.divider span::before { right: 100%; }
.divider span::after  { left: 100%; }

/* ---------- Google button ---------- */
.google-btn {
  margin-top: 0;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 6px;

  border: 1px solid #444;
  background: #ffffff;
  color: #000;

  font-weight: 600;
  font-size: 0.95rem;

  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.google-btn:hover {
  background: #f5f5f5;
}

.google-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: #fff;
  display: inline-block;
  box-shadow: 0 0 0 1px #ccc inset;
}

/* ---------- Cloudflare Turnstile ---------- */
/* Wrapper (naudok HTML'e: <div class="turnstile-row"><div class="cf-turnstile" ...></div></div>) */
.turnstile-row {
  display: flex;
  justify-content: center;
  margin: 16px 0 10px;
  min-height: 72px;
}

.turnstile-row .cf-turnstile {
  display: inline-flex;
}

/* atsargiai: CF įdeda iframe, čia tik kosmetika */
.turnstile-row iframe {
  max-width: 100%;
  border-radius: 10px;
}

/* ---------- Mobile ---------- */
@media (max-width: 520px) {
  body.auth-page { padding-top: 30px; }
  .auth-box { padding: 18px; }
}
