*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FDF8F3;
  --warm-white: #FFFCF8;
  --gold: #E8A020;
  --gold-dark: #C8880A;
  --gold-light: #FFF3DC;
  --text-dark: #1A1208;
  --text-mid: #5C4A2A;
  --text-soft: #9C8560;
  --border: #EDE0C8;
  --error: #D94040;
  --error-bg: #FFF0F0;
  --shadow-sm: 0 2px 12px rgba(90,60,10,0.08);
  --shadow-md: 0 8px 32px rgba(90,60,10,0.13);
  --shadow-btn: 0 4px 20px rgba(232,160,32,0.35);
  --radius: 20px;
  --radius-sm: 12px;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
}

/* ─── LAYOUT ─── */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

/* ─── IMAGE PANEL ─── */
.image-section {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #FFF3D0 0%, #FDEAB0 50%, #F5CF7A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,220,100,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(232,160,32,0.30) 0%, transparent 55%);
}

.image-section::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(232,160,32,0.18);
}

.brand-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 32px;
}

.logo-wrap {
  width: 140px; height: 140px;
  margin: 0 auto 28px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
}

.logo-wrap img {
  width: 90%; height: 90%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-name span { color: var(--gold-dark); }

.brand-tagline {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-mid);
  font-weight: 500;
}

.brand-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px; padding: 8px 18px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  border: 1px solid rgba(232,160,32,0.3);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid);
}

.brand-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2DC653;
  box-shadow: 0 0 0 2px rgba(45,198,83,0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(45,198,83,0.3); }
  50% { box-shadow: 0 0 0 5px rgba(45,198,83,0.1); }
}

/* ─── BACK LINK ─── */
.back-link {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 10;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 7px 14px;
  background: rgba(255,255,255,0.7);
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: background 0.2s;
}
.back-link:hover { background: #fff; }

/* ─── FORM PANEL ─── */
.login-section {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 40px;
  background: var(--warm-white);
  position: relative;
}

.login-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), #FFDA6A);
}

.deco-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-1 { width: 180px; height: 180px; right: -60px; top: -60px; background: radial-gradient(circle, rgba(232,160,32,0.08) 0%, transparent 70%); }
.deco-2 { width: 120px; height: 120px; left: -40px; bottom: 80px; background: radial-gradient(circle, rgba(232,160,32,0.06) 0%, transparent 70%); }

/* ─── FORM CARD ─── */
.form-card {
  width: 100%; max-width: 400px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.45s both;
}

.form-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.page-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 0.87rem; color: var(--text-soft);
  margin-bottom: 28px; line-height: 1.5;
}

/* ─── INPUT ─── */
.input-group { margin-bottom: 8px; }

.input-label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.input-wrap { position: relative; display: flex; align-items: center; }

.input-icon {
  position: absolute; left: 14px;
  font-size: 1rem; color: var(--text-soft);
  pointer-events: none;
}

input[type="text"] {
  width: 100%;
  padding: 13px 16px 13px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]::placeholder { color: #C4AE8A; }

input[type="text"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,160,32,0.15);
}

input[type="text"].input-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217,64,64,0.1);
}

.error-msg {
  display: none;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--error-bg);
  border: 1px solid rgba(217,64,64,0.2);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--error);
  font-weight: 500;
  align-items: center; gap: 6px;
}
.error-msg.show { display: flex; }

.upi-hint {
  margin-top: 6px;
  font-size: 0.78rem; color: var(--text-soft);
}

/* ─── BUTTON ─── */
.track-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px 20px;
  border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.track-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 28px rgba(232,160,32,0.45);
}

.track-btn:active:not(:disabled) { transform: scale(0.98); }
.track-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.track-btn .arrow { transition: transform 0.2s; }
.track-btn:hover:not(:disabled) .arrow { transform: translateX(4px); }

/* ─── FOOTER ─── */
.footer {
  margin-top: 28px;
  font-size: 0.78rem; color: var(--text-soft);
  text-align: center;
  animation: fadeUp 0.5s 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── MOBILE ─── */
@media (max-width: 700px) {
  .wrapper { flex-direction: column; }
  .image-section { flex: none; padding: 36px 24px 32px; }
  .logo-wrap { width: 90px; height: 90px; border-radius: 20px; }
  .brand-name { font-size: 1.45rem; }
  .brand-tagline { font-size: 0.82rem; }
  .brand-pill { font-size: 0.75rem; margin-top: 16px; }
  .back-link { top: 14px; left: 14px; font-size: 0.78rem; padding: 6px 12px; }
  .login-section { padding: 32px 20px 28px; }
  .form-card { padding: 26px 20px; }
  .page-title { font-size: 1.25rem; }
}