@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --panel: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --panel-soft: rgba(59, 130, 246, 0.12);
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --button: #1d4ed8;
  --button-hover: #1e40af;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 26%),
              radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.12), transparent 22%),
              var(--bg);
  color: var(--text);
}

.login-body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  width: min(1100px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.auth-panel,
.auth-form-box {
  padding: 48px;
}

.auth-panel {
  background: var(--panel);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.auth-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  line-height: 1.05;
}

.auth-panel p {
  margin: 0;
  line-height: 1.8;
  max-width: 420px;
}

.auth-panel .panel-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.16);
  padding: 14px 18px;
  border-radius: 18px;
  width: fit-content;
  font-weight: 600;
}

.auth-form-box {
  background: #ffffff;
}

.auth-form-card {
  max-width: 420px;
  width: 100%;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.auth-brand-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.auth-brand-icon svg {
  width: 32px;
  height: 32px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.5rem;
}

.auth-brand p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.auth-form-card h2 {
  margin: 0 0 18px;
  font-size: 1.8rem;
}

.auth-form-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.field label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--button);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.auth-footer {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.auth-footer a {
  color: var(--button);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

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

  .auth-panel {
    padding: 36px 28px;
  }

  .auth-form-box {
    padding: 32px 28px;
  }
}

@media (max-width: 560px) {
  .auth-wrapper {
    border-radius: 20px;
  }

  .auth-panel,
  .auth-form-box {
    padding: 24px;
  }

  .auth-brand {
    gap: 12px;
  }

  .auth-form-card h2 {
    font-size: 1.5rem;
  }
}
