* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  min-height: 100vh;
}

/* ── Left Panel – Hero ──────────────────────── */
.hero {
  flex: 1.2;
  background: linear-gradient(370deg, #0e56b4 0%, #1269db 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 3rem;
  overflow: hidden;
}

@keyframes slowPan {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(1.1); }
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, rgba(251,191,36,0) 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
  animation: slowPan 15s infinite alternate ease-in-out;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, rgba(251,191,36,0) 70%);
  bottom: -100px;
  right: -50px;
  border-radius: 50%;
  animation: slowPan 18s infinite alternate-reverse ease-in-out;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 480px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  background: linear-gradient(to bottom right, #fde68a, #d1c8c3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-weight: 400;
}

/* ── Right Panel – Login ────────────────────── */
.login-panel {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 2rem;
}

.login-form {
  width: 100%;
  max-width: 400px;
  position: relative;
}

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

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.form-header p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* ── Form Elements ──────────────────────────── */
.form-group {
  margin-bottom: 1.75rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #1269db;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(18,105,219,0.15);
}

.error-text {
  color: #f53636;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0 2rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #475569;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-label input {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  accent-color: #1269db;
  cursor: pointer;
}

/* ── Button ─────────────────────────────────── */
.btn {
  width: 100%;
  background: #1269db;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(17,23,97,0.2), 0 2px 4px -1px rgba(17,23,97,0.1);
}

.btn:hover {
  background: #0e56b4;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(18,105,219,0.3), 0 4px 6px -2px rgba(18,105,219,0.15);
}

.btn:active {
  transform: translateY(1px);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-content h1,
.hero-content p {
  opacity: 0;
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-form {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
  animation-delay: 0.2s;
}

.hero-content h1 { animation-delay: 0.1s; }
.hero-content p  { animation-delay: 0.3s; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .page        { flex-direction: column; }
  .hero        { flex: auto; padding: 4rem 2rem; text-align: center; }
  .login-panel { padding: 3rem 1.5rem; }
  .card        { padding: 2rem; }
}
