/* ═══════════════════════════════════════════════════════
   LEAK2BZ — Red & Black Flame Theme
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-dark: #0a0a0a;
  --bg-card: rgba(20, 5, 5, 0.85);
  --bg-card-hover: rgba(40, 8, 8, 0.95);
  --red-primary: #e63946;
  --red-dark: #9b1b24;
  --red-glow: #ff2d2d;
  --red-ember: #ff6b35;
  --orange-flame: #ff9500;
  --yellow-flame: #ffd000;
  --text-primary: #f1f1f1;
  --text-muted: #a0a0a0;
  --text-accent: #ff4444;
  --border-glow: rgba(230, 57, 70, 0.4);
  --shadow-red: 0 0 30px rgba(230, 57, 70, 0.3);
  --shadow-ember: 0 0 60px rgba(255, 107, 53, 0.2);
  --gradient-fire: linear-gradient(135deg, #e63946, #ff6b35, #ff9500);
  --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a0505 50%, #0a0a0a 100%);
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── Flame Canvas Background ─── */
#flame-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: var(--red-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
}

/* ═══════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════ */

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.login-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 50px 40px;
  width: 420px;
  max-width: 90vw;
  box-shadow: var(--shadow-red), var(--shadow-ember);
  animation: card-appear 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-fire);
  border-radius: 21px;
  z-index: -1;
  opacity: 0.15;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

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

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.15;
  }

  50% {
    opacity: 0.3;
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 35px;
}

.login-logo h1 {
  font-family: inherit;
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: 3px;
  animation: text-flicker 4s ease-in-out infinite;
}

.login-logo .subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

@keyframes text-flicker {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.3);
  }

  92% {
    filter: brightness(1);
  }

  94% {
    filter: brightness(1.5);
  }

  96% {
    filter: brightness(1);
  }
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 0, 0, 0.7);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
  background: rgba(25, 5, 5, 0.9);
}

.form-group input::placeholder {
  color: rgba(160, 160, 160, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-fire);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 25px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 35px rgba(230, 57, 70, 0.6);
}

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

.btn-secondary {
  background: rgba(230, 57, 70, 0.15);
  color: var(--red-primary);
  border: 1px solid var(--border-glow);
}

.btn-secondary:hover {
  background: rgba(230, 57, 70, 0.25);
  box-shadow: var(--shadow-red);
}

.btn-danger {
  background: rgba(180, 20, 20, 0.3);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(180, 20, 20, 0.5);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.75rem;
}

.login-error {
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--red-primary);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-accent);
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: none;
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.auth-toggle {
  margin-top: 24px;
  text-align: center;
}

.auth-toggle p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-toggle a {
  color: var(--red-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-toggle a:hover {
  color: var(--red-glow);
  text-decoration: underline;
}

/* ═══════════════════════════════
   NAVBAR
   ═══════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--text-primary);
  background: rgba(230, 57, 70, 0.15);
}

.navbar-nav a.active {
  border-bottom: 2px solid var(--red-primary);
}

/* ═══════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════ */

.main-content {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h2 {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ═══════════════════════════════
   COLLEGE SECTIONS
   ═══════════════════════════════ */

.college-section {
  margin-bottom: 40px;
}

.college-title {
  font-family: inherit;
  font-size: 1.3rem;
  color: var(--red-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(230, 57, 70, 0.3);
  text-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
}

.college-empty p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flame-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), var(--red-glow), var(--red-primary), transparent);
  margin: 30px 0;
  opacity: 0.5;
}

/* ═══════════════════════════════
   MEMBER CARDS
   ═══════════════════════════════ */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.member-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-fire);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-primary);
  box-shadow: var(--shadow-red);
  background: var(--bg-card-hover);
}

.member-card:hover::after {
  opacity: 1;
}

.member-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.member-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--red-primary);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

.member-photo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red-primary);
  background: rgba(230, 57, 70, 0.1);
}

.member-name {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.member-age {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.member-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.member-detail .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(230, 57, 70, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.member-detail .value {
  color: var(--text-muted);
}

.member-notes {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(230, 57, 70, 0.1);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ═══════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════ */

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-red);
}

.admin-panel h3 {
  font-family: inherit;
  font-size: 1.2rem;
  color: var(--red-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(230, 57, 70, 0.2);
}

.admin-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(15, 0, 0, 0.5);
  border: 1px solid rgba(230, 57, 70, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.admin-member-item:hover {
  border-color: var(--red-primary);
  background: rgba(25, 5, 5, 0.7);
}

.admin-member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-member-info .name {
  font-weight: 600;
  color: var(--text-primary);
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.photo-upload-area {
  border: 2px dashed rgba(230, 57, 70, 0.3);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.photo-upload-area:hover {
  border-color: var(--red-primary);
  background: rgba(230, 57, 70, 0.05);
}

.photo-upload-area .upload-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.photo-upload-area p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red-primary);
  margin: 10px auto;
  display: none;
}

/* ═══════════════════════════════
   EMPTY STATE
   ═══════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: inherit;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ═══════════════════════════════
   MODAL
   ═══════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
}

.modal-overlay.show {
  display: flex;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 30px;
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-red);
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }

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

.modal h3 {
  font-family: inherit;
  font-size: 1.2rem;
  color: var(--red-primary);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ═══════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════ */

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--red-primary);
  border-radius: 10px;
  padding: 14px 20px;
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-red);
  animation: toast-in 0.4s ease;
  min-width: 280px;
}

.toast.success {
  border-color: #2ecc71;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}

@keyframes toast-in {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

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

/* ═══════════════════════════════
   FLAME DECORATIVE ELEMENTS
   ═══════════════════════════════ */

.flame-divider {
  height: 3px;
  background: var(--gradient-fire);
  border-radius: 2px;
  margin: 30px 0;
  opacity: 0.5;
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient-fire);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
  filter: blur(4px);
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */

@media (max-width: 600px) {
  .login-container {
    padding: 35px 25px;
  }

  .login-logo h1 {
    font-size: 2rem;
  }

  .navbar {
    padding: 0 15px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-nav a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .page-header h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 16px;
  }
}