/* ==========================================
   The Sovereign Mind Institute — Auth Styles
   Unified look for all authentication pages
   ========================================== */

/* 🔹 Base layout */
body.auth {
  font-family: "Inter", sans-serif;
  background: #0b0b0b;
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
}

:root {
  --bg: #0b0b0b;
  --bg2: #0f1115;
  --panel: #0e1117;
  --text: #e6e6e6;
  --muted: #b8b8b8;
  --gold: #d4af37;
  --gold2: #c29a2e;
  --border: rgba(212,175,55,.35);
  --success: #7ee39c;
  --danger: #ff9aa0;
  --ink: #111;
  --radius: 16px;
}

/* 🔹 Card container */
.card {
  padding: 2rem 3rem;
  text-align: center;
  width: 340px;
  animation: fadeIn 0.6s ease;
  background: linear-gradient(180deg, #111318, #0f1015);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  overflow: hidden;
}

/* 🔹 Titles & text */
h1 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
p {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* 🔹 Form elements */
input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.95rem;
}
input::placeholder {
  color: #999;
}
button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;

  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
  background: linear-gradient(180deg, #141821, #0d0f15);
  color: var(--text);
  border: 1px solid var(--border);
}

button:hover {
  box-shadow: 0 0 0 3px rgba(212,175,55,.25);
}

/* 🔹 Tabs for Login/Signup */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.tab {
  flex: 1;
  padding: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #bbb;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.tab.active {
  color: var(--gold);
  border-color: var(--gold);
}
.card form {
  display: none;
}
.card form.active {
  display: block !important;
}

/* --- Admin Table Layout Fix --- */
.card {
  width: auto;
  max-width: 95%;
  overflow-x: auto;
}


/* 🔹 Feedback messages */
.message {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ffd700;
}

/* 🔹 Footer links */
.footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #777;
}
.footer a {
  color: #ffd700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer a:hover {
  opacity: 0.8;
}

/* 🔹 Dashboard styles */
.dashboard {
  max-width: 600px;
  text-align: center;
}
.dashboard h2 {
  color: #ffd700;
  margin-bottom: 1rem;
}
.dashboard a {
  display: inline-block;
  background: #ffd700;
  color: #111;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}
.dashboard a:hover {
  background: #e6c300;
}

/* 🔹 Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   🌗 Theme Toggle (Dark/Light Mode)
   ========================================== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: 0.3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ffd700;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* 🔆 Light theme overrides */
body.light {
  background: #f5f5f5;
  color: #111;
}

body.light .card {
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

body.light h1,
body.light h2 {
  color: #c59f00;
}

body.light input {
  background: #eee;
  color: #111;
}

body.light button {
  background: linear-gradient(180deg, #ffffff, #f1f3f5);
  color: #121212;
}

body.light table {
  color: #111;
}

body.light th {
  color: #c59f00;
}

body.light td {
  color: #333;
}

/* ================================
   🎓 Course Button Styling
   ================================ */
.course-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.course-btn {
  background: linear-gradient(90deg, var(--gold), #c59f00);
  color: #eee;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  font-size: 1rem;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.course-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* 🔆 Light theme variant */
body.light .course-btn {
  background: linear-gradient(90deg, #f2d24b, #f5b400);
  color: #222;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
body.light .course-btn:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}




