* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f3f4f6;
  user-select: none;
}

.page-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f3f4f6;
  padding: 20px;
}

/* =========================================
   Top Navigation & Logout Button
   ========================================= */
.top-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.logout-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #4b5563;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.logout-btn:hover {
  color: #b80028;
  border-color: rgba(184, 0, 40, 0.2);
  background-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 0, 40, 0.1);
}

.logout-btn:active {
  transform: translateY(0) scale(0.97);
}

.logout-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

.logout-btn:hover svg {
  transform: translateX(2px);
}

/* =========================================
   1. Auth / Login Card
   ========================================= */
.auth-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  padding: 36px 30px;
  border-radius: 24px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.auth-logo {
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.auth-header p {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus {
  background-color: #ffffff;
  border-color: #b80028;
  box-shadow: 0 0 0 3px rgba(184, 0, 40, 0.12);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.auth-error {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.4;
  animation: shake 0.3s ease-in-out;
}

.auth-btn {
  margin-top: 8px;
  width: 100%;
  padding: 13px;
  background-color: #b80028;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-btn:hover {
  background-color: #a30024;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 0, 40, 0.35);
}

.auth-btn:active {
  transform: translateY(0) scale(0.98);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn-spinner svg {
  animation: spin 1s linear infinite;
}

/* =========================================
   2. Coach Call View (Exact Match)
   ========================================= */
.call-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeIn 0.3s ease-out;
}

/* FT Logo Circle */
.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ft-logo {
  width: 100%;
  height: 100%;
  display: block;
}

/* Call Button */
.call-btn {
  border: none;
  outline: none;
  background-color: #b80028;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 11px 22px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.call-btn:hover {
  background-color: #a30024;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 0, 40, 0.35);
}

.call-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  display: block;
}

.btn-text {
  white-space: nowrap;
  line-height: 1;
}

/* Active In-Call State */
.call-btn.in-call {
  background-color: #b80028;
  animation: pulseCall 2s infinite ease-in-out;
}

@keyframes pulseCall {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 0, 40, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(184, 0, 40, 0);
  }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Watermark Suppression */
elevenlabs-convai,
[class*="elevenlabs"],
[id*="elevenlabs"],
iframe[src*="elevenlabs"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
