/* ══════════════════════════════════════════════════════════════════
   VIDEO CLIP WEB — Auth pages (login / register / home)
   Dark Catppuccin theme, same palette as the app.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #1e1e2e;
  --surface:   #181825;
  --overlay:   #313244;
  --text:      #cdd6f4;
  --subtext:   #a6adc8;
  --accent:    #89b4fa;
  --accent2:   #f5c2e7;
  --green:     #a6e3a1;
  --red:       #f38ba8;
  --yellow:    #f9e2af;
  --radius:    8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Auth container (login / register) ─────────────────────────── */

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.auth-logo {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  margin-bottom: 6px;
  user-select: none;
}

.auth-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--subtext);
  margin-bottom: 24px;
}

.auth-error {
  background: rgba(243, 139, 168, 0.12);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

/* ── Form ─────────────────────────────────────────────────────── */

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

.auth-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--subtext);
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--overlay);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: var(--accent);
}

/* ── Buttons ──────────────────────────────────────────────────── */

.auth-btn {
  padding: 12px 0;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
  margin-top: 16px;
}

.auth-btn:hover { filter: brightness(1.12); }
.auth-btn:active { transform: scale(0.97); }

.auth-btn--primary {
  background: var(--accent);
  color: #1e1e2e;
}

.auth-btn--secondary {
  background: var(--overlay);
  color: var(--text);
}

/* ── Separator ────────────────────────────────────────────────── */

.auth-separator {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--subtext);
  font-size: 13px;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--overlay);
}

.auth-separator span {
  padding: 0 14px;
}

/* ── Google button centering ──────────────────────────────────── */

.g_id_signin {
  display: flex;
  justify-content: center;
}

/* ── Link ─────────────────────────────────────────────────────── */

.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--subtext);
  margin-top: 20px;
}

.auth-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════════════════════════════ */

/* ── Navbar ───────────────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--overlay);
}

.navbar-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  user-select: none;
}

.navbar-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.navbar-links a,
.navbar-links button {
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.navbar-links a:hover,
.navbar-links button:hover { filter: brightness(1.15); }

.nav-login {
  background: var(--overlay);
  color: var(--text);
}

.nav-register {
  background: var(--accent);
  color: #1e1e2e;
}

.nav-app {
  background: var(--green);
  color: #1e1e2e;
}

.nav-logout {
  background: var(--overlay);
  color: var(--subtext);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.nav-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent2);
  color: #1e1e2e;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  min-height: 70vh;
}

.hero-icon {
  font-size: 80px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.hero h2 .highlight {
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  color: var(--subtext);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
}

.hero-cta a {
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s, transform 0.1s;
}

.hero-cta a:hover { filter: brightness(1.12); }
.hero-cta a:active { transform: scale(0.97); }

.cta-primary {
  background: var(--accent);
  color: #1e1e2e;
}

.cta-secondary {
  background: var(--overlay);
  color: var(--text);
}

/* ── Features ─────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 40px 32px 60px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 13px;
  color: var(--subtext);
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--subtext);
  border-top: 1px solid var(--overlay);
}

/* ── Admin panel ──────────────────────────────────────────────── */

.admin-container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 24px;
}

.admin-container h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--text);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--overlay);
}

.admin-table th {
  background: var(--overlay);
  color: var(--subtext);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
}

.admin-table td {
  padding: 10px 16px;
  font-size: 14px;
  border-top: 1px solid var(--overlay);
}

.admin-table tr:hover td {
  background: rgba(137, 180, 250, 0.05);
}

.badge-admin {
  background: var(--accent2);
  color: #1e1e2e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.badge-user {
  background: var(--overlay);
  color: var(--subtext);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.admin-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

.admin-btn:hover { filter: brightness(1.15); }

.admin-btn--promote {
  background: var(--green);
  color: #1e1e2e;
}

.admin-btn--demote {
  background: var(--yellow);
  color: #1e1e2e;
}

.admin-btn--disable {
  background: var(--red);
  color: #1e1e2e;
}

.admin-btn--enable {
  background: var(--accent);
  color: #1e1e2e;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .navbar    { padding: 12px 16px; }
  .hero h2   { font-size: 28px; }
  .hero p    { font-size: 15px; }
  .hero-cta  { flex-direction: column; width: 100%; max-width: 300px; }
  .hero-cta a { width: 100%; text-align: center; }
}
