*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'neulis-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* ── Left ──────────────────────────────────── */
.login-left {
  background: #faf8f5;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 40px 80px; position: relative;
}
.login-form-wrapper { width: 100%; max-width: 420px; animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.login-logo { margin-bottom: 20px; }
.login-logo img { width: 140px; height: auto; }

.login-heading { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: #1a1a1a; margin-bottom: 8px; line-height: 1.15; }
.login-subtitle { font-size: 15px; color: #6b6560; line-height: 1.5; margin-bottom: 36px; }

.login-error {
  background: rgba(234, 88, 12, 0.08); border: 1px solid rgba(234, 88, 12, 0.25);
  color: #c2410c; padding: 12px 16px; border-radius: 10px; margin-bottom: 24px;
  font-size: 14px; font-weight: 500;
}

.login-field { margin-bottom: 20px; position: relative; }
.login-field label { display: block; font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.login-input-wrap { position: relative; }
.login-input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #a8a09a; pointer-events: none;
}
.login-field input {
  width: 100%; padding: 14px 16px 14px 48px;
  background: #fff; border: 1.5px solid #e8e2da; border-radius: 10px;
  font-size: 15px; font-family: inherit; color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.login-field input::placeholder { color: #a8a09a; }
.login-field input:focus { border-color: #ef7f1a; box-shadow: 0 0 0 3px rgba(239, 127, 26, 0.1); }

.login-eye-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #a8a09a;
  padding: 4px; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.login-eye-btn:hover { color: #6b6560; }
.login-eye-btn svg { width: 20px; height: 20px; }

.login-submit {
  width: 100%; padding: 15px 24px;
  background: #ef7f1a; color: #fff;
  font-size: 16px; font-weight: 700; font-family: inherit; letter-spacing: -0.01em;
  border: none; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.login-submit:hover { background: #ea5a21; box-shadow: 0 4px 20px rgba(239, 127, 26, 0.35); transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }
.login-submit svg { width: 18px; height: 18px; transition: transform 0.2s; }
.login-submit:hover svg { transform: translateX(3px); }

.recaptcha-wrapper { margin: 4px 0 20px; }

.login-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: #e8e2da; }
.login-divider span { font-size: 12px; font-weight: 600; color: #a8a09a; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }

.login-passkey {
  width: 100%; padding: 14px 24px;
  background: #fff; color: #1a1a1a;
  font-size: 15px; font-weight: 600; font-family: inherit; letter-spacing: -0.01em;
  border: 1.5px solid #e8e2da; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.login-passkey:hover { border-color: #c4bdb6; background: #f3ede5; }
.login-passkey:focus-visible { outline: none; border-color: #ef7f1a; box-shadow: 0 0 0 3px rgba(239, 127, 26, 0.1); }
.login-passkey svg { width: 20px; height: 20px; color: #6b6560; }
.login-passkey[disabled] { opacity: 0.5; cursor: default; }
.login-passkey[disabled]:hover { border-color: #e8e2da; background: #fff; }

/* ── Right: globe panel ─────────────────────── */
.login-right { position: relative; overflow: hidden; background: #c45a10; }
.login-right-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(239, 127, 26, 0.9), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(234, 90, 33, 0.8), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(199, 70, 7, 0.6), transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(250, 201, 77, 0.25), transparent 40%);
  background-color: #c45a10;
  animation: gradientShift 12s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(-5deg) brightness(1.05); }
  100% { filter: hue-rotate(3deg) brightness(0.95); }
}
.login-globe-shadow { display: none; }
#globeCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

/* ── Entrance ───────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1100px) { .login-split { grid-template-columns: 1.2fr 1fr; } }

@media (max-width: 768px) {
  .login-split { grid-template-columns: 1fr; }
  .login-left { padding: 32px 24px; min-height: 100vh; }
  .login-form-wrapper { max-width: 100%; }
  .login-logo img { width: 120px; }
  .login-heading { font-size: 26px; }
  .login-field input { padding: 12px 14px 12px 44px; font-size: 14px; }
  .login-input-icon { left: 14px; width: 16px; height: 16px; }
  .login-submit { padding: 13px 20px; font-size: 15px; }
  .login-right { display: none; }
}

@media (max-width: 400px) {
  .login-left { padding: 24px 16px; }
  .login-logo { margin-bottom: 28px; }
  .login-heading { font-size: 22px; }
  .login-subtitle { font-size: 13px; margin-bottom: 24px; }
}

/* ── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .login-right-bg { animation: none; }
  .login-form-wrapper { animation: none; }
  .login-submit:hover { transform: none; }
}
