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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f0f4fd;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1036px;
  min-height: 647px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  overflow: hidden;
}

.left-panel {
  flex: 1;
  background: #f0f4fd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.illustration {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.right-panel {
  flex: 1;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.content {
  width: 100%;
  max-width: 422px;
}

.logo {
  height: 48px;
  width: auto;
  margin-bottom: 48px;
  display: block;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn:focus-visible {
  outline: 2px solid #00766e;
  outline-offset: 2px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-block;
}

.btn-primary {
  background: #00766e;
  color: white;
}

.btn-primary:hover { background: #005950; }

.btn-secondary {
  background: white;
  color: #00766e;
  border: 2px solid #00766e;
}

.btn-secondary:hover { background: #f0f9f8; }

.btn + .btn { margin-top: 16px; }

.loading-state h2 { margin-bottom: 24px; }

.spinner-container {
  margin: 32px 0;
  display: flex;
  justify-content: center;
}

.spinner {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  grid-gap: 8px;
}

.spinner-dot {
  width: 12px;
  height: 12px;
  background: #00766e;
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out;
}

.spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.spinner-dot:nth-child(2) { animation-delay: -0.16s; }
.spinner-dot:nth-child(3) { animation-delay: -0.48s; }
.spinner-dot:nth-child(4) { animation-delay: 0s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.loading-message {
  font-size: 16px;
  color: #00766e;
  text-align: center;
  margin-bottom: 16px;
}

.switch-link {
  font-size: 14px;
  color: #00766e;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 8px;
  display: block;
  margin: 0 auto;
  font-family: inherit;
}

.switch-link:hover { color: #005950; }

.switch-link:focus-visible {
  outline: 2px solid #00766e;
  outline-offset: 2px;
}

.hidden { display: none; }

@media (max-width: 768px) {
  body { padding: 20px; }

  .container {
    flex-direction: column;
    min-height: auto;
    max-width: 360px;
  }

  .left-panel { display: none; }

  .right-panel {
    padding: 32px 24px;
  }

  .content { max-width: 296px; }

  .logo { margin-bottom: 32px; }

  .mobile-illustration {
    display: block;
    width: 100%;
    max-width: 296px;
    margin: 0 auto 32px;
  }

  .desktop-illustration { display: none; }
}

@media (min-width: 769px) {
  .mobile-illustration { display: none; }
  .desktop-illustration { display: block; }
}
