* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1115;
  color: #e8e8e8;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 1rem 2rem;
  border-bottom: 1px solid #262a33;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.1rem;
  margin: 0;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

main.top-aligned {
  align-items: flex-start;
}

.card {
  background: #171a21;
  border: 1px solid #262a33;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}

.wide {
  max-width: 720px;
}

h2 {
  margin-top: 0;
}

label {
  display: block;
  font-size: 0.85rem;
  margin: 1rem 0 0.3rem;
  color: #a0a5b1;
}

input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #333844;
  background: #0f1115;
  color: #e8e8e8;
  font-size: 0.95rem;
}

button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: none;
  background: #4f7cff;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
}

button:hover { background: #3d67e8; }
button:disabled { background: #333844; cursor: not-allowed; }

button.secondary {
  background: transparent;
  border: 1px solid #333844;
  width: auto;
  margin-top: 0;
  padding: 0.4rem 0.9rem;
}

.error {
  margin-top: 1rem;
  color: #ff6b6b;
  font-size: 0.85rem;
}

.course-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid #262a33;
}

.course-list li:last-child { border-bottom: none; }

a.button-link {
  background: #4f7cff;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.muted { color: #a0a5b1; font-size: 0.9rem; }
