:root {
  --navy-900: #0a3a5c;
  --navy-700: #0f4d78;
  --blue-500: #29abe2;
  --blue-400: #4fc3ec;
  --ink: #102a3c;
  --muted: #5d7587;
  --bg: #f4f8fb;
  --card-bg: #ffffff;
  --error: #d64550;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 24px 60px -20px rgba(10, 58, 92, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

/* ---------- Brand panel ---------- */
.brand-panel {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-500) 130%);
  color: #eef7fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  overflow: hidden;
}

.brand-panel__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 15% 20%, rgba(79, 195, 236, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(41, 171, 226, 0.3), transparent 50%),
    radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.brand-panel__content {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.brand-logo {
  background: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  max-width: 240px;
  height: auto;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.35);
  margin-bottom: 36px;
}

.brand-panel__content h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 14px;
}

.brand-panel__content > p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(238, 247, 252, 0.85);
  margin: 0 0 36px;
}

.brand-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(238, 247, 252, 0.95);
}

.brand-features__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.brand-features__icon svg {
  width: 19px;
  height: 19px;
  color: #ffffff;
}

/* ---------- Form panel ---------- */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
  position: relative;
}

.form-card {
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
}

.form-card__logo {
  display: none;
}

.form-card__header h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--navy-900);
}

.form-card__header p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e1e8ee;
  border-radius: var(--radius-md);
  background: #f9fbfd;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field__control:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.14);
  background: #ffffff;
}

.field__icon {
  width: 18px;
  height: 18px;
  margin-left: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.field input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 13px 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
}

.field__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.field__toggle svg {
  width: 18px;
  height: 18px;
}

.field__toggle:hover {
  color: var(--blue-500);
}

.form-error {
  background: rgba(214, 69, 80, 0.08);
  color: var(--error);
  border: 1px solid rgba(214, 69, 80, 0.25);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.btn-submit {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 28px -10px rgba(15, 77, 120, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -10px rgba(15, 77, 120, 0.6);
}

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

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

.btn-submit__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-card__footer {
  text-align: center;
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .page {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .form-card__logo {
    display: block;
    max-width: 170px;
    margin: 0 auto 24px;
  }

  .form-panel {
    padding: 28px 18px;
  }
}
