:root {
  --fn-bg: #0b0614;
  --fn-bg-soft: #140a26;
  --fn-accent: #b78cff; /* helleres Lila */
  --fn-accent-strong: #d1a9ff;
  --fn-accent-soft: rgba(183, 140, 255, 0.2);
  --fn-border: #2b1f47;
  --fn-text: #f5f2ff;
  --fn-text-muted: #b0a4cc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.fn-body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--fn-text);
  background: radial-gradient(
    circle at top left,
    #2e135a 0,
    #05030a 50%,
    #02010a 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.fn-bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(196, 159, 255, 0.15) 0, transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(119, 192, 255, 0.18) 0, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.fn-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.fn-card {
  background: linear-gradient(
    145deg,
    rgba(12, 6, 32, 0.95),
    rgba(15, 10, 40, 0.98)
  );
  border-radius: 18px;
  padding: 28px 24px 24px;
  border: 1px solid var(--fn-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.fn-logo {
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fn-logo span {
  color: var(--fn-accent-strong);
}

.fn-subtitle {
  font-size: 0.9rem;
  color: var(--fn-text-muted);
  margin-bottom: 20px;
}

.fn-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fn-label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 6px;
}

.fn-input,
.fn-select {
  background: rgba(9, 5, 26, 0.9);
  border-radius: 10px;
  border: 1px solid var(--fn-border);
  padding: 10px 12px;
  color: var(--fn-text);
  outline: none;
  font-size: 0.9rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.05s ease;
}

.fn-input::placeholder {
  color: #796b9c;
}

.fn-input:focus,
.fn-select:focus {
  border-color: var(--fn-accent-strong);
  box-shadow: 0 0 0 1px var(--fn-accent-soft);
  background: rgba(12, 7, 32, 0.98);
  transform: translateY(-1px);
}

.fn-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fn-text-muted);
  line-height: 1.4;
}

.fn-checkbox input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--fn-accent);
}

.fn-checkbox a {
  color: var(--fn-accent-strong);
  text-decoration: none;
}

.fn-checkbox a:hover {
  text-decoration: underline;
}

.fn-btn-primary {
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--fn-accent), var(--fn-accent-strong));
  color: #0b0614;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(136, 93, 255, 0.45);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    filter 0.1s ease;
}

.fn-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(136, 93, 255, 0.55);
  filter: brightness(1.05);
}

.fn-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(136, 93, 255, 0.4);
}

.fn-footer-hint {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--fn-text-muted);
  text-align: center;
}

@media (max-width: 480px) {
  .fn-card {
    padding: 22px 18px 18px;
  }

  .fn-logo {
    font-size: 1.7rem;
  }
}

.fn-error-box {
  display: none;
  background: rgba(255, 90, 116, 0.12);
  border: 1px solid rgba(255, 120, 140, 0.4);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #ff9aa9;
  list-style: disc;
  padding-left: 22px;
}
