/* Mednos Platform — Landing/Login im Radiology-Style (black & white) */

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

@font-face {
  font-family: 'PF Videotext';
  src: url('/fonts/pfvideotext-reg-subset.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-light: #2a2a2a;
  --highlight-bg: rgba(255, 255, 255, 0.05);
  --highlight-border: rgba(255, 255, 255, 0.1);
}

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

.card {
  width: min(92vw, 440px);
  background: var(--card-bg);
  border: 1px solid var(--highlight-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  font-family: 'PF Videotext', sans-serif;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

input {
  padding: 0.75rem 1rem;
  background: var(--dark-bg);
  border: 1px solid var(--highlight-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--darker-bg);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

input::placeholder { color: var(--text-secondary); }

button, .google-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--highlight-bg);
  border: 1px solid var(--highlight-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover, .google-btn:hover {
  background: var(--accent-light);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

button:active, .google-btn:active { transform: translateY(0); }

.google-btn {
  margin-bottom: 1rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
}

.google-btn:hover { color: var(--text-primary); background: var(--highlight-bg); }

.linklike {
  background: none;
  border: none;
  width: auto;
  margin: 0 auto;
  padding: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.linklike:hover {
  background: none;
  border: none;
  color: var(--text-primary);
  transform: none;
}

.error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 0.875rem;
  text-align: center;
}

/* Konto-Ansicht (Escape-Hatch mednos.eu/#konto) — nur Username + Logout.
   Die Regeln der alten Apps-Übersicht (#app-tiles, .tile, #admin-panel,
   #pending-list) sind mit ihr entfallen. */
#greeting {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
}

#logout { margin-top: 1.5rem; }

/* TOTP / 2FA */
.hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

#totp-qr { display: flex; justify-content: center; margin-bottom: 1.25rem; }

#totp-qr img {
  width: 200px;
  height: 200px;
  padding: 0.75rem;
  background: #fff;
  border-radius: 8px;
}

.totp-digits {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.totp-digit {
  width: 3rem;
  height: 3rem;
  padding: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--dark-bg);
  border: 2px solid var(--highlight-border);
  border-radius: 8px;
}

.totp-digit:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--darker-bg);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
  .card { padding: 2rem 1.5rem; }
  .brand { font-size: 1.75rem; }
}
