/* =====================================================================
   Over Tails Online - Modern Neo-Fantasy Glassmorphism Register Theme
   Matching Main Portal: Obsidian Void, Electric Cyan, Solar Amber
   ===================================================================== */

:root {
  --bg: #06080d;
  --bg-mesh: radial-gradient(at 0% 0%, rgba(0, 210, 255, 0.14) 0px, transparent 55%),
             radial-gradient(at 100% 0%, rgba(255, 184, 52, 0.12) 0px, transparent 50%),
             radial-gradient(at 50% 100%, rgba(0, 150, 255, 0.10) 0px, transparent 60%),
             #06080d;
  --panel: rgba(13, 17, 26, 0.82);
  --panel-solid: #0d121c;
  --panel2: rgba(20, 26, 40, 0.75);
  --panel3: rgba(28, 36, 56, 0.65);
  --line: rgba(0, 210, 255, 0.18);
  --line2: rgba(255, 184, 52, 0.25);
  --line-subtle: rgba(255, 255, 255, 0.08);
  --text: #f3f6fc;
  --muted: #8a99b5;
  --gold: #ffb834;
  --gold2: #ffe082;
  --cyan: #00d2ff;
  --cyan2: #80e7ff;
  --cyan-glow: rgba(0, 210, 255, 0.35);
  --gold-glow: rgba(255, 184, 52, 0.30);
  --red: #ff5c5c;
  --green: #00e676;
  --r: 20px;
  --glass-blur: blur(20px) saturate(150%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Kanit', "Sarabun", "Segoe UI", Tahoma, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mesh);
  background-color: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  position: relative;
  padding: 32px 16px;
  overflow-x: hidden;
}

/* Subtle background particles / grid overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(rgba(0, 210, 255, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(255, 184, 52, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  pointer-events: none;
  z-index: 1;
}

/* Brand Bar at Top */
.top-brand {
  position: absolute;
  top: 20px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 10;
  background: rgba(13, 17, 26, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}

.top-brand:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}

.top-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 210, 255, 0.4));
}

.top-brand span {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Main Card - Sleek Glassmorphism */
.register-card {
  position: relative;
  z-index: 2;
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  width: 100%;
  max-width: 440px;
  border-radius: var(--r);
  padding: 36px 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 210, 255, 0.12);
  border: 1px solid var(--line);
  animation: cardFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardFade {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: 22px;
  right: 24px;
}

.btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-subtle);
  cursor: pointer;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-refresh:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.12);
  box-shadow: 0 0 14px var(--cyan-glow);
  transform: rotate(180deg);
}

.header {
  text-align: center;
  margin-bottom: 22px;
}

.header img {
  filter: drop-shadow(0 6px 16px rgba(0, 210, 255, 0.25));
  transition: transform 0.3s ease;
}

.header img:hover {
  transform: scale(1.04);
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-top: 6px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 400;
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #cfd8e8;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-group input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: rgba(8, 12, 19, 0.85);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: #556580;
  font-size: 13px;
}

.form-group input:focus {
  border-color: var(--cyan);
  background: rgba(12, 17, 28, 0.95);
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  line-height: 1.4;
  backdrop-filter: blur(10px);
}

.alert.error {
  display: block;
  background: rgba(255, 92, 92, 0.12);
  color: #ff7878;
  border: 1px solid rgba(255, 92, 92, 0.35);
  box-shadow: 0 0 15px rgba(255, 92, 92, 0.15);
}

.alert.success {
  display: block;
  background: rgba(0, 230, 118, 0.12);
  color: #52ff9b;
  border: 1px solid rgba(0, 230, 118, 0.35);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.15);
}

/* Submit Button - Solar Amber & Radiant Gold */
.btn-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #ffe082 0%, #ffb834 50%, #f59e0b 100%);
  color: #1a1202;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 6px 24px var(--gold-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.btn-submit:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 8px 30px rgba(255, 184, 52, 0.55);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.footer-link {
  text-align: center;
  margin-top: 18px;
}

.footer-link a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link a:hover {
  color: var(--cyan2);
  text-shadow: 0 0 10px var(--cyan-glow);
}

/* Success Card */
.success-card {
  display: none;
  text-align: center;
  padding: 10px 0;
}

.success-card .icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  font-size: 32px;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.25);
}

.success-card h2 {
  font-size: 22px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.uid-badge {
  display: inline-block;
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 22px;
  box-shadow: 0 0 18px var(--gold-glow);
}

.btn-action-group {
  display: flex;
  gap: 12px;
}

.btn-secondary {
  flex: 1;
  height: 46px;
  background: rgba(20, 26, 40, 0.8);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan2);
  background: rgba(0, 210, 255, 0.12);
  box-shadow: 0 0 18px var(--cyan-glow);
}

/* =====================================================================
   Top bar - same look as the main site header (shop.css .top / .top-nav)
   ===================================================================== */
body { padding-top: 96px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-top .ni { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-top {
  font-family: "Sarabun", "Kanit", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
  font-size: 15px; line-height: 1.5;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 8, 13, 0.95);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.75);
}
.site-top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  max-width: 1360px; margin: 0 auto; padding: 8px 16px;
}
.site-brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.site-brand img { height: 36px; width: auto; filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.45));
  transition: transform .25s ease; }
.site-brand:hover img { transform: scale(1.05); }
.site-brand .b1 { background: linear-gradient(135deg, #ffe082 0%, #ffb834 100%); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.site-brand .b2 { background: linear-gradient(135deg, #a5f0ff 0%, #00d2ff 100%); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; margin-left: 2px; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; min-width: 0; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: 13px; text-decoration: none;
  border: 1px solid transparent; transition: all .16s ease; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(0, 210, 255, 0.08); border-color: rgba(0, 210, 255, 0.25); }
.site-nav a:hover .ni { color: var(--cyan); transform: scale(1.12); }
.site-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.site-btn {
  font: inherit; text-decoration: none; white-space: nowrap; border-radius: 999px; padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(0, 210, 255, 0.25); color: var(--text);
  transition: all .18s ease;
}
.site-btn:hover { background: rgba(0, 210, 255, 0.12); border-color: var(--cyan); color: #fff;
  box-shadow: 0 0 14px var(--cyan-glow); }
.site-btn.primary { background: linear-gradient(135deg, #ffc84b 0%, #f39c12 50%, #e67e22 100%); color: #110e08;
  font-weight: 700; border: none; box-shadow: 0 4px 20px rgba(243, 156, 18, 0.35); }
.site-btn.primary:hover { color: #000; box-shadow: 0 8px 28px rgba(243, 156, 18, 0.55); }
@media (max-width: 1280px) {
  .site-nav .ni { display: none; }
  .site-nav a { padding: 4px 7px; font-size: 12.5px; }
  .site-brand { font-size: 15px; }
  .site-brand img { height: 32px; }
  .site-top-bar { padding: 6px 12px; gap: 6px; }
}
/* narrow screens: the page links scroll sideways on a second row instead of disappearing */
@media (max-width: 1000px) {
  body { padding-top: 120px; }
  .site-top-bar { flex-wrap: wrap; row-gap: 4px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  .site-brand > span { display: none; }
  .site-top-bar { padding: 10px 14px; }
  .site-brand img { height: 32px; }
}

/* same slim scrollbar as the main site, so the header is the same width on both pages */
::-webkit-scrollbar { width: 7px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(6, 8, 13, 0.7); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(0, 210, 255, 0.22); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 210, 255, 0.45); }
* { scrollbar-width: thin; scrollbar-color: rgba(0, 210, 255, 0.25) rgba(6, 8, 13, 0.7); }
/* register.css sets Kanit on every element (*): give the header the main site's fonts back */
.site-top, .site-top * { font-family: "Sarabun", "Kanit", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif; }
.site-nav a, .site-nav a *, .site-brand, .site-brand * { font-family: "Kanit", "Leelawadee UI", sans-serif; }