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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== Split Screen Layout ========== */
.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ========== Left Panel: Image + AI Logos ========== */
.left-panel {
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.panel-background {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1563013544-824ae1b704d3?w=1200&h=1600&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.panel-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* ========== AI Logos Grid ========== */
.ai-logos-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  width: 100%;
}

.logo-item {
  position: relative;
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  padding: 48px 40px;
  transition: all 0.3s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.logo-item:hover {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(30, 30, 30, 0.3);
}

/* Corner dots effect - exactly like How It Works */
.logo-item::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  background:
    radial-gradient(circle, #fff 4px, transparent 4px) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle, #fff 4px, transparent 4px) 100% 0 / 8px 8px no-repeat,
    radial-gradient(circle, #fff 4px, transparent 4px) 0 100% / 8px 8px no-repeat,
    radial-gradient(circle, #fff 4px, transparent 4px) 100% 100% / 8px 8px no-repeat;
  pointer-events: none;
}

.logo-item:hover::before {
  opacity: 1;
}

.logo-row-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-row-title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.logo-row-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.logo-row-icons {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo-row-icons img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.logo-item:hover .logo-row-icons img {
  opacity: 1;
  transform: scale(1.05);
}

.logo-row-icons img[alt="Meta AI"],
.logo-row-icons img[alt="Claude"],
.logo-row-icons img[alt="Grok"],
.logo-row-icons img[alt="Perplexity"] {
  width: 36px;
  height: 48px;
}

.logo-badge {
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #999;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-badge.live {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ========== Right Panel: Registration Form ========== */
.right-panel {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  overflow-y: auto;
}

.register-wrapper {
  width: 100%;
  max-width: 520px;
}

/* ========== Form Header ========== */
.form-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.form-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== Form ========== */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2;
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper input:not(:placeholder-shown) ~ .input-icon,
.input-wrapper select:focus ~ .input-icon {
  color: rgba(255, 255, 255, 0.6);
}

input,
select {
  width: 100%;
  padding: 16px 16px 16px 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

input::placeholder,
select option:first-child {
  color: rgba(255, 255, 255, 0.4);
}

input:focus,
select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.02);
}

input[readonly] {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.3);
  padding-left: 16px;
}

input[readonly]:focus {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

input[readonly] ~ .input-icon {
  display: none;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
}

select option {
  background: #000;
  color: #fff;
  padding: 12px;
}

/* No floating labels - placeholders disappear on input */

/* ========== Submit Button ========== */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: #fff;
  border: none;
  border-radius: 12px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.15);
}

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

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========== Error Message ========== */
.error-message {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fca5a5;
  font-size: 14px;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== Form Note ========== */
.form-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: 0;
  line-height: 1.6;
}

.form-note-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.form-note-link:hover {
  color: #fff;
}

/* ========== Back Button ========== */
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 24px;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* ========== Google Places Autocomplete ========== */
.pac-container {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.pac-item {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pac-item-selected {
  background: rgba(255, 255, 255, 0.08);
}

.pac-item-query {
  color: #fff;
  font-size: 15px;
}

.pac-matched {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.pac-icon {
  display: none;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .split-screen {
    grid-template-columns: 1fr;
  }

  .left-panel {
    min-height: 50vh;
    padding: 40px;
  }

  .ai-logos-grid {
    max-width: 100%;
  }

  .logo-item {
    padding: 40px 32px;
    min-height: 200px;
  }

  .logo-row-title {
    font-size: 22px;
  }

  .logo-row-description {
    font-size: 15px;
  }

  .logo-row-icons img {
    width: 44px;
    height: 44px;
  }

  .logo-row-icons img[alt="Meta AI"],
  .logo-row-icons img[alt="Claude"],
  .logo-row-icons img[alt="Grok"],
  .logo-row-icons img[alt="Perplexity"] {
    width: 33px;
    height: 44px;
  }

  .right-panel {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .left-panel {
    padding: 32px 24px;
    min-height: auto;
  }

  .logo-item {
    padding: 32px 24px;
    min-height: 180px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(30, 30, 30, 0.2);
  }

  .logo-item::before {
    opacity: 0.4;
  }

  .logo-row-title {
    font-size: 20px;
  }

  .logo-row-description {
    font-size: 14px;
  }

  .logo-row-icons {
    gap: 24px;
  }

  .logo-row-icons img {
    width: 40px;
    height: 40px;
  }

  .logo-row-icons img[alt="Meta AI"],
  .logo-row-icons img[alt="Claude"],
  .logo-row-icons img[alt="Grok"],
  .logo-row-icons img[alt="Perplexity"] {
    width: 30px;
    height: 40px;
  }

  .logo-badge {
    font-size: 9px;
    padding: 5px 10px;
  }

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

  .form-title {
    font-size: 36px;
  }

  .form-subtitle {
    font-size: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  input,
  select {
    padding: 14px 14px 14px 44px;
    font-size: 16px;
  }

  .input-icon {
    left: 14px;
  }

}

@media (max-width: 480px) {
  .left-panel {
    padding: 24px 16px;
  }

  .logo-item {
    padding: 24px 20px;
    min-height: 160px;
  }

  .logo-row-content {
    gap: 20px;
  }

  .logo-row-title {
    font-size: 18px;
  }

  .logo-row-description {
    font-size: 13px;
  }

  .logo-row-icons {
    gap: 20px;
  }

  .logo-row-icons img {
    width: 36px;
    height: 36px;
  }

  .logo-row-icons img[alt="Meta AI"],
  .logo-row-icons img[alt="Claude"],
  .logo-row-icons img[alt="Grok"],
  .logo-row-icons img[alt="Perplexity"] {
    width: 27px;
    height: 36px;
  }

  .logo-badge {
    font-size: 8px;
    padding: 4px 8px;
  }
}
