@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* Teal Theme */
  --bg: #0D1F1E;
  --surface: #1A3534;
  --surface-2: #214D4A;
  --border: #2F6B67;
  --accent: #4BA9A3;
  --accent-light: #6DBAB5;
  --accent-dark: #3A8A85;
  --text: #F0F8F7;
  --text-muted: #A8C8C5;
  --radius: 12px;
  --glow: rgba(75, 169, 163, 0.3);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1400px 900px at 20% -10%, rgba(75,169,163,0.25), transparent 60%),
    radial-gradient(ellipse 1200px 800px at 95% 110%, rgba(75,169,163,0.15), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ============ AUTH PAGES ============ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(75, 169, 163, 0.1);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card h1 {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

input[type=file] {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(75, 169, 163, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(75, 169, 163, 0.45);
  transform: translateY(-2px);
}

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

.btn-secondary {
  padding: 9px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #EF4444;
  color: #FCA5A5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 6px;
}

.ok-box {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid #22C55E;
  color: #86EFAC;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 6px;
}

/* ============ ADMIN SHELL ============ */
.admin-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-topbar .brand {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.admin-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.admin-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-color: var(--accent-light);
  font-weight: 700;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(75, 169, 163, 0.08);
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.panel h2 {
  font-size: 15px;
  margin: 0 0 16px;
  color: var(--accent-light);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--glow);
}

.stat-card .label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-card .value {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--text);
}

.stat-card .value.accent {
  color: var(--accent-light);
}

/* ============ TABLE STYLES ============ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input.inline-num {
  width: 80px;
  padding: 6px 8px;
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

/* ============ SHAREHOLDER ROW ============ */
.shareholder-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  animation: slideInLeft 0.4s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.shareholder-row:last-child {
  border-bottom: none;
}

.sh-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--glow);
}

.sh-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-light);
}

.sh-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1.5fr 0.8fr;
  gap: 8px;
}

.sh-fields input {
  padding: 8px;
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  transition: all 0.3s ease;
}

.sh-fields input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}

/* ============ PUBLIC LANDING PAGE ============ */
.public-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 20px 70px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.public-logo {
  max-width: 120px;
  max-height: 120px;
  margin-bottom: 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(75, 169, 163, 0.25);
  animation: float 3s ease-in-out infinite;
}

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

.public-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideDown 0.6s ease-out;
}

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

.public-tagline {
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  animation: slideUp 0.6s ease-out 0.2s both;
}

.public-subtitle {
  font-size: 14px;
  color: var(--accent-light);
  margin-bottom: 16px;
  animation: slideUp 0.6s ease-out 0.4s both;
}

.public-footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.validity-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.rights-note {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

.glow-dot {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  margin: 16px auto 32px;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(75, 169, 163, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(75, 169, 163, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(75, 169, 163, 0.9);
  }
}

/* ============ TEAM GRID ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 24px;
  margin-top: 20px;
}

.team-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.4s ease;
  animation: cardSlide 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes cardSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 12px 32px rgba(75, 169, 163, 0.2);
  transform: translateY(-8px);
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }
.team-card:nth-child(6) { animation-delay: 0.6s; }

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(75, 169, 163, 0.2);
}

.team-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-light);
  background: var(--surface-2);
}

.team-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--accent-light);
}

.team-role {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.team-bio {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  min-height: 30px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .public-title {
    font-size: 28px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 16px;
  }

  .sh-fields {
    grid-template-columns: 1fr;
  }

  .shareholder-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .public-wrap {
    padding: 30px 16px 50px;
  }

  .public-title {
    font-size: 22px;
  }

  .public-tagline {
    font-size: 14px;
  }

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

  .admin-shell {
    padding: 16px 12px 40px;
  }
}
