/* ═══════════════════════════════════════════════
   ✧ DREAMY NEOCITIES — SHARED STYLESHEET ✧
   kawaii × cottagecore × fairycore × pastel goth × y2k
   ═══════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Patrick+Hand&family=Courier+Prime&family=Gloria+Hallelujah&display=swap');

/* ═══ CSS VARIABLES — SEASONAL THEMES ═══ */
:root,
[data-season="spring"] {
  --bg-main: #fff0f5;
  --bg-card: #ffffffcc;
  --bg-nav: #ffd6e7ee;
  --accent1: #ffb6c1;
  --accent2: #dda0dd;
  --accent3: #b5ead7;
  --accent4: #ffefd5;
  --text-main: #5a3e5c;
  --text-heading: #c77dba;
  --text-link: #e78fba;
  --text-link-hover: #d65fa0;
  --border-color: #f3c1d3;
  --shadow-color: rgba(199, 125, 186, .25);
  --bg-pattern-color1: #ffe4ec;
  --bg-pattern-color2: #fff0f5;
  --glow: #ffc0cbaa;
  --season-emoji: "❀";
}

[data-season="summer"] {
  --bg-main: #fef9e7;
  --bg-card: #ffffffcc;
  --bg-nav: #ffe8a1ee;
  --accent1: #ffd166;
  --accent2: #f4845f;
  --accent3: #a8dadc;
  --accent4: #fef3c7;
  --text-main: #5c4a1e;
  --text-heading: #e07b39;
  --text-link: #f4845f;
  --text-link-hover: #d96c4c;
  --border-color: #f5d89a;
  --shadow-color: rgba(224, 123, 57, .25);
  --bg-pattern-color1: #fff3cd;
  --bg-pattern-color2: #fef9e7;
  --glow: #ffd166aa;
  --season-emoji: "☼";
}

[data-season="autumn"] {
  --bg-main: #fdf2e9;
  --bg-card: #ffffffcc;
  --bg-nav: #f5c6a5ee;
  --accent1: #d4a373;
  --accent2: #e07b53;
  --accent3: #ccd5ae;
  --accent4: #faedcd;
  --text-main: #5c3d2e;
  --text-heading: #b5651d;
  --text-link: #d4a373;
  --text-link-hover: #b5651d;
  --border-color: #deb887;
  --shadow-color: rgba(181, 101, 29, .25);
  --bg-pattern-color1: #fae5d3;
  --bg-pattern-color2: #fdf2e9;
  --glow: #d4a373aa;
  --season-emoji: "𖥧";
}

[data-season="winter"] {
  --bg-main: #eaf4fc;
  --bg-card: #ffffffcc;
  --bg-nav: #b8d4e3ee;
  --accent1: #a2c4e0;
  --accent2: #c3aed6;
  --accent3: #d5e5f0;
  --accent4: #f0f4ff;
  --text-main: #3b4f6b;
  --text-heading: #6f8faf;
  --text-link: #89b0d3;
  --text-link-hover: #5a8ab5;
  --border-color: #b8cfe0;
  --shadow-color: rgba(90, 138, 181, .25);
  --bg-pattern-color1: #dce8f4;
  --bg-pattern-color2: #eaf4fc;
  --glow: #a2c4e0aa;
  --season-emoji: "❅";
}

/* ═══ RESET & BASE ═══ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Patrick Hand', cursive;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-pattern-color2);
  background-image:
    radial-gradient(circle, var(--bg-pattern-color1) 1px, transparent 1px),
    radial-gradient(circle, var(--border-color) .5px, transparent .5px);
  background-size: 24px 24px, 12px 12px;
  background-position: 0 0, 6px 6px;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--text-link-hover);
  text-decoration: underline wavy var(--accent2);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent1);
  color: #fff;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--accent1);
  border-radius: 10px;
  border: 2px solid var(--bg-main);
}

/* ═══ NAVIGATION RIBBON ═══ */
.nav-ribbon {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  padding: 0;
  border-bottom: 3px dashed var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-logo {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  color: var(--text-heading);
  text-shadow: 2px 2px 0 var(--glow);
  letter-spacing: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  padding: 5px 13px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all .25s;
  color: var(--text-main);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent1);
  color: #fff;
  border-color: var(--accent2);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--accent2);
}

.season-switcher {
  display: flex;
  gap: 4px;
}

.season-btn {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 6px !important;
  width: auto !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: var(--text-main);
}

.season-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--glow);
}

.season-btn.active {
  border-color: var(--accent2);
  box-shadow: 0 0 6px var(--glow);
}

/* ═══ MAIN LAYOUT ═══ */
.page-wrapper {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: var(--bg-card);
  border: 3px dashed var(--border-color);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 5px 5px 0 var(--shadow-color);
  position: relative;
  backdrop-filter: blur(4px);
}

.card::before {
  content: var(--season-emoji);
  position: absolute;
  top: -12px;
  right: 16px;
  font-size: 22px;
  font-family: 'Patrick Hand', cursive;
}

/* ═══ HEADINGS ═══ */
h1, h2, h3 {
  font-family: 'VT323', monospace;
  color: var(--text-heading);
  text-shadow: 2px 2px 0 var(--glow);
}

h1 { font-size: 2.6rem; text-align: center; margin-bottom: 12px; letter-spacing: 3px; }
h2 { font-size: 1.8rem; margin-bottom: 10px; }
h3 { font-size: 1.3rem; }

.doodle-divider {
  text-align: center;
  margin: 20px 0;
  font-size: 1.2rem;
  letter-spacing: 8px;
  color: var(--accent2);
  user-select: none;
}

/* ═══ HOMEPAGE — HERO ═══ */
.shrine-hero { text-align: center; padding: 40px 20px; }

.portrait-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px dashed var(--accent2);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  box-shadow: 0 0 20px var(--glow);
  overflow: hidden;
  position: relative;
}

.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { font-size: 48px; color: var(--accent2); font-family: 'VT323', monospace; }

.typewriter {
  font-family: 'Courier Prime', monospace;
  font-size: 1.15rem;
  color: var(--text-heading);
  border-right: 2px solid var(--accent2);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}

.enter-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 40px;
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border: 3px solid var(--accent2);
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  animation: blink-border 1.2s step-start infinite, y2k-glow 2s ease-in-out infinite;
  transition: transform .2s;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.enter-btn:hover { transform: scale(1.08) translateY(-2px); text-decoration: none; color: #fff; }

@keyframes y2k-glow {
  0%, 100% { box-shadow: 0 0 8px var(--glow), 0 0 20px var(--glow); }
  50%       { box-shadow: 0 0 18px var(--glow), 0 0 40px var(--glow); }
}
@keyframes blink-border {
  0%, 100% { border-color: var(--accent1); }
  50%       { border-color: var(--accent2); }
}

/* ═══ ABOUT — BOXED WIN98 ARRANGEMENT ═══ */
.win98-window {
  border: 3px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: 6px 6px 0 var(--shadow-color);
  overflow: hidden;
}

.win98-titlebar {
  background: linear-gradient(90deg, #c87dd6, #a06bc5, #c87dd6) !important;
  font-weight: bold;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.win98-buttons { display: flex; gap: 6px; }
.win98-btn {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .5);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .2);
}

.win98-body { padding: 24px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 10px; }
.info-box { background: var(--bg-main); border: 2px dashed var(--border-color); border-radius: 12px; padding: 12px 16px; }
.info-box h3 { margin-bottom: 8px; font-size: 1rem; }
.info-box ul { list-style: none; padding: 0; font-size: 0.9rem; line-height: 1.9; }
.info-box li::before { content: "♡ "; color: var(--accent1); }

.currently-section { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.currently-item { background: var(--accent4); border: 2px dashed var(--border-color); border-radius: 14px; padding: 14px; text-align: center; }
.currently-item .label { font-family: 'VT323', monospace; font-size: 1rem; color: var(--accent2); display: block; margin-bottom: 4px; }

/* ═══ DIARY ═══ */
.journal-page {
  background: #fffef5;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  padding: 30px 36px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 4px 4px 0 var(--shadow-color);
  background-image: repeating-linear-gradient(transparent, transparent 29px, #e8d4e8 29px, #e8d4e8 30px);
  background-position: 0 20px;
}
.journal-page::before { content: ""; position: absolute; left: 40px; top: 0; bottom: 0; width: 2px; background: #f4a0a0aa; }
.journal-entry { padding-left: 24px; }
.journal-date { font-family: 'Gloria Hallelujah', cursive; color: var(--accent2); font-size: 1rem; margin-bottom: 6px; }
.journal-text { font-family: 'Gloria Hallelujah', cursive; font-size: .95rem; color: #6b4f6b; line-height: 30px; }
.journal-doodle { text-align: center; font-size: 1.4rem; margin: 10px 0; letter-spacing: 10px; user-select: none; color: var(--accent2); }

/* ═══ GALLERY ═══ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 14px; border: 3px dashed var(--border-color);
  background: var(--accent4); cursor: pointer; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.15); }
.gallery-item .gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(90, 62, 92, .7));
  color: #fff; padding: 8px; font-family: 'VT323', monospace; font-size: .95rem; text-align: center;
  transform: translateY(100%); transition: transform .3s;
}
.gallery-item:hover .gallery-label { transform: translateY(0); }
.gallery-placeholder-inner { font-size: 32px; color: var(--accent2); font-family: 'VT323', monospace; }

.lightbox-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .75); z-index: 500; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 85vw; max-height: 85vh; border-radius: 16px; border: 4px solid var(--accent1); box-shadow: 0 0 40px var(--glow); }

/* ═══ GUESTBOOK ═══ */
.guestbook-form label { display: block; font-family: 'VT323', monospace; margin-bottom: 4px; color: var(--text-heading); }
.guestbook-form input, .guestbook-form textarea {
  width: 100%; padding: 10px; margin-bottom: 12px; border: 2px dashed var(--border-color); border-radius: 10px;
  font-family: 'Patrick Hand', cursive; font-size: 1rem; background: var(--bg-main); color: var(--text-main); resize: vertical;
}
.guestbook-form input:focus, .guestbook-form textarea:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 8px var(--glow); }
.guestbook-submit {
  padding: 10px 28px; font-family: 'VT323', monospace; font-size: 1.2rem; border: 2px solid var(--accent2);
  border-radius: 14px; background: linear-gradient(135deg, var(--accent1), var(--accent2)); color: #fff; cursor: pointer; transition: transform .2s;
}
.guestbook-submit:hover { transform: scale(1.05); box-shadow: 0 4px 12px var(--shadow-color); }
.guestbook-messages { display: flex; flex-direction: column; gap: 14px; }
.gb-message { background: var(--bg-main); border: 2px dashed var(--border-color); border-radius: 14px; padding: 16px; position: relative; }
.gb-message .gb-name { font-family: 'VT323', monospace; color: var(--text-heading); font-size: 1.1rem; }
.gb-message .gb-date { font-size: .8rem; color: var(--accent2); margin-left: 8px; }
.gb-message .gb-text { margin-top: 6px; }

/* ═══ MUSIC PLAYER ═══ */
.music-player {
  position: fixed; bottom: 16px; right: 16px; z-index: 200; width: 260px;
  background: linear-gradient(180deg, #3a3a5c, #2a2a3e); border: 2px solid var(--accent2); border-radius: 10px;
  padding: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, .4); font-family: 'VT323', monospace; color: #c5f0c5; font-size: .9rem; user-select: none;
}
.mp-titlebar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .8rem; color: var(--accent1); }
.mp-toggle-btn { background: none; border: none; color: var(--accent1); font-family: 'VT323', monospace; font-size: 1rem; cursor: pointer; }
.mp-display { background: #1a1a2e; border-radius: 6px; padding: 6px 8px; margin-bottom: 8px; text-align: center; font-size: .85rem; color: #b8f0b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-controls { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.mp-btn {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px;
  color: #c5f0c5; width: 32px; height: 28px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mp-progress { width: 100%; height: 4px; background: #1a1a2e; border-radius: 2px; margin-bottom: 6px; overflow: hidden; cursor: pointer; }
.mp-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent1), var(--accent2)); border-radius: 2px; }
.mp-volume { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: #aaa; }
.mp-volume input[type="range"] { flex: 1; height: 4px; -webkit-appearance: none; background: #1a1a2e; border-radius: 2px; outline: none; }
.mp-volume input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent1); cursor: pointer; }
.mp-playlist { max-height: 100px; overflow-y: auto; font-size: .8rem; }
.mp-playlist div { padding: 3px 6px; border-radius: 4px; cursor: pointer; }
.mp-playlist div:hover { background: rgba(255, 255, 255, .1); }
.mp-playlist div.active { color: var(--accent1); background: rgba(255, 255, 255, .08); }
.mp-collapsed .mp-display, .mp-collapsed .mp-controls, .mp-collapsed .mp-progress, .mp-collapsed .mp-volume, .mp-collapsed .mp-playlist, .mp-collapsed .mp-add-song { display: none; }

.mp-add-song { padding: 8px 10px 10px; border-top: 1px dashed var(--border-color); display: flex; flex-direction: column; gap: 5px; }
.mp-add-song input { width: 100%; padding: 5px 8px; border: 1px dashed var(--border-color); border-radius: 6px; font-family: 'VT323', monospace; font-size: 0.9rem; background: var(--bg-main); color: var(--text-main); }
.mp-add-song button { padding: 5px 10px; background: linear-gradient(135deg, var(--accent1), var(--accent2)); color: #fff; border: none; border-radius: 8px; font-family: 'VT323', monospace; font-size: 0.95rem; cursor: pointer; }
.mp-empty { font-family: 'VT323', monospace; font-size: 0.85rem; color: var(--accent2); text-align: center; padding: 6px 4px; }
.mp-playlist-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; border-radius: 6px; cursor: pointer; font-family: 'VT323', monospace; font-size: 0.9rem; color: var(--text-main); }
.mp-playlist-item:hover { background: var(--accent4); }
.mp-playlist-item.active { background: var(--accent1); color: #fff; }
.mp-playlist-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-remove-btn { background: none; border: none; color: inherit; cursor: pointer; font-size: 0.8rem; opacity: 0.6; }

/* ── CURSOR TRAIL ── */
.cursor-particle {
  position: fixed; pointer-events: none; z-index: 9999; font-size: 16px;
  animation: float-away 1.2s forwards; user-select: none; font-family: 'VT323', monospace; color: var(--accent2);
}
@keyframes float-away {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}

/* ═══ FOOTER ═══ */
.page-footer { text-align: center; padding: 20px; font-family: 'VT323', monospace; font-size: .9rem; color: var(--accent2); margin-top: 30px; }

/* ═══ ADMIN FORM / SETUP ═══ */
.admin-form { background: var(--bg-main); border: 2px solid var(--accent2); padding: 15px; border-radius: 12px; margin-top: 10px; }
.admin-form label { display: block; margin-bottom: 5px; font-family: 'VT323', monospace; }
.admin-form input, .admin-form textarea { width: 100%; padding: 8px; margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 6px; font-family: inherit; }
.save-btn { background: var(--accent1); color: white; border: none; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-family: 'VT323', monospace; font-size: 1.1rem; }
.save-btn:hover { background: var(--accent2); }

/* PROFILE EDIT WINDOW MODAL */
.edit-profile-btn {
  font-family: 'VT323', monospace; font-size: 1.1rem; padding: 8px 24px; background: var(--bg-card);
  border: 2px dashed var(--accent2); border-radius: 10px; color: var(--text-heading); cursor: pointer; box-shadow: 3px 3px 0 var(--shadow-color);
}
.modal-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(180, 120, 180, 0.35); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.modal-window { background: var(--bg-card); border: 3px solid var(--border-color); border-radius: 10px; box-shadow: 8px 8px 0 var(--shadow-color); width: 100%; max-width: 460px; margin: auto; }
.modal-titlebar { background: linear-gradient(90deg, var(--accent1), var(--accent2)); padding: 7px 14px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-family: 'VT323', monospace; }
.modal-close-btn { background: none; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; color: #fff; font-family: 'VT323', monospace; padding: 1px 8px; cursor: pointer; }
.modal-body { padding: 18px 20px; max-height: 70vh; overflow-y: auto; }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; font-family: 'VT323', monospace; color: var(--text-heading); margin-bottom: 5px; }
.modal-field input, .modal-field textarea { width: 100%; padding: 9px 12px; border: 2px dashed var(--border-color); border-radius: 10px; font-family: 'Patrick Hand', cursive; background: var(--bg-main); color: var(--text-main); }
.cancel-btn { background: var(--bg-main); color: var(--text-heading); border: 2px dashed var(--border-color); padding: 8px 20px; border-radius: 20px; cursor: pointer; font-family: 'VT323', monospace; }
.pfp-preview-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.pfp-placeholder-icon { font-size: 2.5rem; color: var(--accent2); font-family: 'VT323', monospace; }
.pfp-upload-label { display: inline-block; padding: 6px 14px; background: var(--bg-main); border: 2px dashed var(--accent2); border-radius: 10px; font-family: 'VT323', monospace; color: var(--text-heading); cursor: pointer; }
.modal-divider { text-align: center; font-family: 'VT323', monospace; color: var(--accent2); letter-spacing: 4px; margin: 14px 0 10px; }

.card::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--glow) 1px, transparent 1px);
  background-size: 24px 24px; opacity: 0.18; pointer-events: none; border-radius: inherit;
}

@media (max-width: 700px) {
  .nav-inner { flex-direction: column; gap: 8px; }
  .nav-links { justify-content: center; }
  .card { padding: 18px 16px; }
  h1 { font-size: 1.8rem; }
  .journal-page { padding: 20px 16px; }
  .journal-page::before { left: 20px; }
  .music-player { width: 220px; right: 8px; bottom: 8px; }
  .portrait-frame { width: 150px; height: 150px; }
}

/* ==========================================================================
   ~*~ AUTH WINDOW / PORTAL GATEWAY STYLES ~*~
   ========================================================================== */
.auth-wrapper {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--bg-card);
  border: 3px dashed var(--border-color);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--shadow-color);
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  backdrop-filter: blur(4px);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--glow) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  pointer-events: none;
  border-radius: inherit;
}

.auth-card h1 {
  font-family: 'VT323', monospace;
  font-size: 2.2rem;
  color: var(--text-heading);
  text-shadow: 2px 2px 0 var(--glow);
  margin: 0 0 6px;
  letter-spacing: 2px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 24px;
}

.auth-tab {
  background: var(--bg-main);
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  padding: 6px 22px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-heading);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  border: 2px solid var(--accent2);
  box-shadow: 0 3px 0 var(--accent2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  text-align: left;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-heading);
  display: block;
  margin-bottom: 2px;
}

.auth-form input {
  width: 100%;
  padding: 10px 14px;
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 8px var(--glow);
}

.auth-submit {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  border: 2px solid var(--accent2);
  border-radius: 20px;
  padding: 10px 28px;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.2s, opacity 0.2s;
}

.auth-submit:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.auth-msg {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  min-height: 24px;
  margin-top: 12px;
}

.auth-msg.error { color: #d96c4c; }
.auth-msg.success { color: #5a8ab5; }

.auth-note {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: var(--accent2);
  margin-top: 20px;
  line-height: 1.4;
}