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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #676a6c;
  background: #f3f3f4;
  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: 980px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  background: #fff;
  border: 1px solid #e7eaec;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.form {
  flex: 1 1 56%;
  min-width: 0;
  padding: clamp(2.25rem, 5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pf-login-aside {
  flex: 0 0 44%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(2rem, 4vw, 3rem) 2rem 1rem;
}

.form-header h1 {
  margin: 0 0 0.45rem;
  width: max-content;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #4b5563;
}

.pf-login-logo {
  display: block;
  width: 12.6em;
  font-size: 1.35rem;
  height: auto;
  max-width: 100%;
}

.form-header p {
  margin: 0 0 1.75rem;
  color: #9aa0a6;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 34ch;
}

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

.input-group input {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 0.95rem;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.input-group input::placeholder {
  color: #c0c4c8;
}

.input-group input:hover {
  border-color: #d1d5db;
}

.input-group input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-group .pf-login-textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.85rem 1.05rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.input-group .pf-login-textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

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

.remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

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

.link-muted:hover {
  color: #6b7280;
  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: #2563eb;
  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: none;
  transition: background 0.12s ease, filter 0.12s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
  filter: none;
  box-shadow: none;
}

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

.create-account {
  display: block;
  margin-top: 1.15rem;
  font-size: 0.875rem;
  color: #9aa0a6;
  text-decoration: none;
  text-align: center;
}

.create-account:hover {
  color: #6b7280;
}

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

.alert-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.alert-info {
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.alert-info a {
  color: #1d4ed8;
  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: 800px) {
  .card {
    flex-direction: column;
  }

  .form,
  .pf-login-aside {
    flex: 1 1 auto;
    width: 100%;
  }

  .pf-login-aside {
    order: -1;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .pf-login-logo {
    width: 12.6em;
  }

  .form {
    padding-top: 1.25rem;
  }
}
