/* ==========================================================
   Culture Catalyst – Unified Theme (Login + Register)
   Restores two-column register and login parity
   ========================================================== */

:root {
  --bg-dark-1: #070b1e;
  --bg-dark-2: #0d1335;
  --accent-violet: #7b2ff7;
  --accent-cyan: #00fff0;
  --accent-blue: #00c6ff;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-primary: #eaf1ff;
  --text-secondary: #a7b4e0;
  --blur: 20px;
  --radius: 18px;
  --font: 'Inter', 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

/* ====== Page background and base ====== */
html,
body {
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  font-family: var(--font);
  color: var(--text-primary);
}

body {
  display: block;
  background: radial-gradient(900px circle at 20% 10%, rgba(0, 212, 255, 0.06), transparent 50%),
    radial-gradient(600px circle at 80% 90%, rgba(123, 47, 247, 0.06), transparent 50%),
    linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* floating ambient layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(123, 47, 247, 0.2), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 212, 255, 0.12), transparent 50%);
  filter: blur(80px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

/* ====== Card base (shared) ====== */
.glass-card,
.register-card {
  position: relative;
  z-index: 1;
  background: var(--glass-bg);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.06);
  box-sizing: border-box;
  margin: 1.5rem auto 2.5rem;
}

.glass-card {
  padding: 2.4rem 2.6rem;
  width: 100%;
  max-width: 440px;
  animation: fadeInCard 0.9s ease-out;
}

.register-card {
  padding: 2.6rem 3.2rem;
  width: 94%;
  max-width: 1100px;
  min-height: auto;
  box-sizing: border-box;
  animation: fadeInCard 1s ease-out;
  overflow: hidden;
  position: relative;
}

.register-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(130deg, var(--accent-violet), var(--accent-cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(0, 255, 240, 0.35));
}

/* Scrollable inner section for register form */
.register-inner-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 6rem);
  padding-right: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.register-inner-scroll::-webkit-scrollbar {
  width: 6px;
}

.register-inner-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.register-inner-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* Titles */
h2 {
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
  color: var(--text-primary);
  text-align: center;
}

p {
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 1.4rem;
}

/* ====== Form grid (two-column) ====== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.form-grid>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

/* Inputs */
input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 1rem;
  box-sizing: border-box;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 8px 30px rgba(123, 47, 247, 0.12);
}

/* File upload - matches text field style */
input[type="file"] {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

input[type="file"]:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 15px rgba(123, 47, 247, 0.25);
}

/* textarea */
textarea {
  min-height: 80px;
  resize: vertical;
}

/* buttons */
.btn-primary-custom {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  box-shadow: 0 10px 30px rgba(123, 47, 247, 0.16);
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(123, 47, 247, 0.22);
}

.btn-ghost {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-primary);
  text-align: center;
  width: 100%;
}

/* small note */
.small-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 12px;
  text-align: center;
}

/* ====== Section titles inside register */
.section-title {
  font-size: 1.02rem;
  color: var(--text-primary);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
  width: 100%;
}

/* ====== Responsive */
@media (max-width: 1000px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .register-card {
    padding: 2rem;
    width: 94%;
    margin: 2rem auto;
  }
}

@media (max-width: 600px) {
  .glass-card {
    margin: 2rem 1rem;
    padding: 1.6rem;
  }

  .register-card {
    padding: 1.6rem;
    margin: 1.2rem;
  }
}

/* animations */
@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* utility */
.mt-10 {
  margin-top: 10px;
}

/* ensure page scroll from top and not center the card */
html,
body {
  scroll-behavior: smooth;
}

/* Admin login top */
.admin-login-top {
  display: inline-grid;
  justify-content: flex-end;
  align-items: flex-start;
  width: 95%;
  margin-top: 1rem;
  padding-right: 2rem;
  position: relative;
  z-index: 5;
}

@media (max-width: 768px) {
  .admin-login-top {
    justify-content: flex-end;
    padding-right: 1rem;
    margin-top: 0.5rem;
  }
}

.admin-login-top .btn-ghost {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.admin-login-top .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* ===========================
   Glass Alert Messages
=========================== */
.alert-glass {
  width: 100%;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 255, 240, 0.1);
  animation: fadeInAlert 0.6s ease-out;
}

.alert-glass.success {
  background: linear-gradient(120deg, rgba(0, 255, 180, 0.15), rgba(0, 255, 240, 0.08));
  border-color: rgba(0, 255, 180, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 180, 0.2);
}

.alert-glass.error {
  background: linear-gradient(120deg, rgba(255, 60, 100, 0.15), rgba(255, 0, 80, 0.1));
  border-color: rgba(255, 80, 120, 0.35);
  box-shadow: 0 0 30px rgba(255, 80, 120, 0.25);
}

@keyframes fadeInAlert {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}