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

.public-auth-page {
  font-family: 'Inter', system-ui, sans-serif;
  color: #fff;
  background: var(--personastack-cream);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.public-auth-page--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
}

.public-auth-page--centered .login-wrapper {
  max-width: 420px;
}

.login-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  position: relative;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--personastack-blue-rgb), 0.4), rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 400;
  font-family: "Exo 2", Arial, sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-text-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.logo-text .brand {
  color: var(--personastack-blue);
}

.logo-text .dot {
  color: var(--personastack-sage);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.error-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fca5a5;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.success-alert {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #86efac;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--personastack-evergreen);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--personastack-blue);
  box-shadow: 0 0 0 3px rgba(var(--personastack-blue-rgb), 0.15);
}

.form-control::placeholder {
  color: rgba(var(--personastack-evergreen-rgb), 0.3);
}

.btn-primary {
  width: 100%;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--personastack-apricot);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background: var(--personastack-blue);
}

.footer-text {
  font-size: 0.75rem;
  color: var(--personastack-sage);
  margin-top: 1rem;
  line-height: 1.5;
}

.footer-text a {
  color: var(--personastack-blue);
  text-decoration: none;
}

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

.public-auth-page--centered .footer-text:last-child {
  margin-bottom: 0;
}

.form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.field-error {
  min-height: 1rem;
  margin-top: 0.35rem;
  color: #fca5a5;
  font-size: 0.8rem;
}
