*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: #e8ecf1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(96, 165, 250, 0.25), transparent 55%),
    radial-gradient(900px 500px at 90% 110%, rgba(74, 222, 128, 0.12), transparent 50%),
    linear-gradient(155deg, #0a0e1a 0%, #121a2e 45%, #0c3488 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-bottom: 4rem;
}

body.pf-login-page .pf-scroll-top {
  bottom: 3.5rem;
}

.page {
  width: 100%;
  max-width: 1120px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 1040px;
  background: rgba(15, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  overflow: hidden;
}

.illustration,
.form {
  width: 50%;
}

.illustration {
  position: relative;
  min-height: 420px;
  background: linear-gradient(160deg, #0b2d6b 0%, #051a45 100%);
}

.illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 24, 0.15) 0%, rgba(8, 12, 24, 0.65) 100%);
  pointer-events: none;
}

.illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.form {
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #93c5fd 0%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-header p {
  margin: 0 0 2rem;
  color: #9aa4b2;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36ch;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
  font-size: 1rem;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.input-group input::placeholder {
  color: #64748b;
}

.input-group input:hover {
  border-color: rgba(96, 165, 250, 0.35);
}

.input-group input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  background: rgba(0, 0, 0, 0.45);
}

.input-group .pf-login-textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.input-group .pf-login-textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  background: rgba(0, 0, 0, 0.45);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin: 0.25rem 0 1.5rem;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #60a5fa;
}

.link-muted {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
}

.link-muted:hover {
  color: #e2e8f0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-primary {
  width: 100%;
  max-width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #4ade80 160%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

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

.create-account {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  text-align: center;
}

.create-account:hover {
  color: #94a3b8;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.alert-error {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.alert-info {
  color: #cbd5e1;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.alert-info a {
  color: #93c5fd;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .card {
    flex-direction: column;
  }

  .illustration {
    display: none;
  }

  .form {
    width: 100%;
    padding: 2rem 1.5rem;
  }
}
