:root {
  --brand:    #4f46e5;
  --brand-2:  #7c75f0;
  --brand-strong: #4338ca;
  --brand-soft: #eef0ff;
  --surface:  #ffffff;
  --surface-2:#f4f5f8;
  --ink:      #1b1d27;
  --ink-soft: #5b6071;
  --ink-faint:#9aa0b0;
  --border:   #e6e8ef;
  --danger:   #ef4444;
  --ease: cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  background: radial-gradient(120% 100% at 50% 0%, #f3f2ff 0%, #e7e9f1 60%, #dfe2ec 100%);
  -webkit-font-smoothing: antialiased;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px 32px 36px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 70px rgba(16,24,40,.16);
  text-align: center;
  animation: card-in .35s var(--ease);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Logó márkajegy */
.card::before {
  content: "";
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(79,70,229,.45);
}

h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
p  { color: var(--ink-faint); margin-bottom: 30px; font-size: 0.95rem; }

.lang-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}
.lang-row button {
  width: auto;
  padding: 6px 11px;
  font-size: 1.3rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.lang-row button:hover   { opacity: .8; background: var(--surface-2); }
.lang-row button.current { opacity: 1; background: var(--brand-soft); border-color: rgba(79,70,229,.2); }

.buttons { display: flex; flex-direction: column; gap: 12px; }

.buttons button {
  width: 100%;
  padding: 16px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 8px 22px rgba(79,70,229,.35);
  transition: transform .12s var(--ease), box-shadow .15s var(--ease), filter .15s var(--ease);
}
.buttons button:hover  { transform: translateY(-2px); filter: brightness(1.04); }
.buttons button:active { transform: none; box-shadow: 0 4px 12px rgba(79,70,229,.35); }

#password {
  width: 100%;
  padding: 15px 16px;
  font-size: 1.02rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  outline: none;
  text-align: center;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
#password:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

.error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
}

.buttons button.ghost {
  background: none;
  color: var(--ink-soft);
  box-shadow: none;
  font-weight: 600;
  padding: 10px;
}
.buttons button.ghost:hover { transform: none; filter: none; background: var(--surface-2); }
