/* Registration form styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-logo {
  margin-bottom: 1.25rem;
}

.card-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.card .subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #333;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #4f46e5;
}

.gdpr-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gdpr-group input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gdpr-group label {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #555;
  font-weight: 400;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button[type="submit"]:hover:not(:disabled) {
  background: #4338ca;
}

button[type="submit"]:disabled {
  background: #a5a3e8;
  cursor: not-allowed;
}

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

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
  flex-shrink: 0;
}

button.loading .btn-spinner {
  display: block;
}

.message {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.message.confirmed,
.message.waitlisted,
.message.rejected,
.message.error {
  animation: fadeup 0.3s ease;
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.message.confirmed {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.message.waitlisted {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
  display: block;
}

.message.rejected {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

.message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

.success-lines {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.success-note {
  font-size: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  opacity: 0.85;
}

.placement-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.placement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.placement-session {
  font-weight: 500;
  font-size: 0.9rem;
}

.placement-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-confirmed {
  background: #d1fae5;
  color: #065f46;
}

.badge-waitlisted {
  background: #fef3c7;
  color: #92400e;
}

.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}
