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

:root {
  --blue: #1A3C6E;
  --blue-mid: #2756A0;
  --blue-light: #3B78D4;
  --blue-pale: #EBF2FC;
  --blue-subtle: #F4F8FD;
  --accent: #F0A500;
  --white: #FFFFFF;
  --text: #1A1F2E;
  --text-mid: #4A5568;
  --text-muted: #8A96A8;
  --border: #D6E4F5;
  --green: #16a34a;
  --green-pale: #ECFDF3;
  --red: #dc2626;
  --red-pale: #FEF2F2;
  --shadow-lg: 0 16px 56px rgba(26, 60, 110, 0.18);
  --font-display: "Playfair Display", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body { min-height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--blue-subtle);
  color: var(--text);
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}

.page-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

.left-panel {
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(240, 165, 0, 0.07), transparent 50%);
}

.lp-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.lp-ring:nth-child(1) { width: 360px; height: 360px; bottom: -90px; right: -90px; }
.lp-ring:nth-child(2) { width: 580px; height: 580px; bottom: -220px; right: -210px; background: rgba(255, 255, 255, 0.02); }

.lp-logo, .lp-content, .lp-bottom { position: relative; z-index: 2; }

.lp-logo-mark {
  display: inline-block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.lp-logo-mark span { color: #7BB8F5; font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.lp-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.lp-content h2 em { font-style: italic; color: #7BB8F5; }

.lp-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 2rem;
}

.lp-perks {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.lp-perk {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.lp-perk-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.lp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.back-link:hover { color: var(--white); }

.right-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--white));
  padding: 2.5rem;
}

.auth-box {
  width: 100%;
  max-width: 460px;
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.auth-logo-mark {
  display: inline-block;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.auth-logo-mark span { color: var(--blue-light); font-weight: 400; }

.auth-card {
  background: var(--white);
  border: 1px solid rgba(214, 228, 245, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-label::before {
  content: attr(data-step);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--blue-mid);
  font-weight: 700;
}

.form-header {
  margin-bottom: 1.7rem;
}

.form-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.form-header p {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.75;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.input-wrap { position: relative; }

.ico {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-field input {
  width: 100%;
  padding: 0.92rem 1rem 0.92rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--blue-subtle);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(39, 86, 160, 0.1);
  background: var(--white);
}

.btn-main {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: var(--blue-mid);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-main:hover { background: var(--blue); transform: translateY(-1px); }
.btn-main:disabled { opacity: 0.65; cursor: wait; transform: none; }

.inline-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.text-link {
  color: var(--blue-mid);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.status-message {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.6;
}

.status-message.error {
  color: var(--red);
  background: var(--red-pale);
  border: 1px solid #FECACA;
}

.success-state {
  text-align: center;
  padding: 0.5rem 0 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  color: var(--green);
  font-size: 1.8rem;
}

.success-state h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.success-state p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hidden { display: none !important; }

@media (max-width: 900px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }

  .left-panel {
    padding: 2rem;
    min-height: auto;
  }

  .right-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .left-panel { display: none; }
  .auth-card { padding: 1.5rem; border-radius: 20px; }
  .auth-logo-mark { font-size: 1.7rem; }
  .inline-actions { flex-direction: column; align-items: flex-start; }
}

/* Google Translate Widget */
#google_translate_element {
  font-size: 14px;
}

#google_translate_element .goog-te-gadget-simple {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 6px;
  font-size: 0;
  width: 30px;
  height: 30px;
  color: var(--blue);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>');
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#google_translate_element .goog-te-gadget-simple:hover {
  background-color: var(--blue-pale);
  border-color: var(--blue);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
