/* =============================================
   index.css — Endorfina Tools  |  Login Neon Dark
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Exo+2:wght@300;400;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0f14;
  --surface:   #13161e;
  --surface2:  #1a1e2a;
  --neon-cyan: #00f5d4;
  --neon-mag:  #e040fb;
  --neon-red:  #ff4560;
  --text:      #e8eaf0;
  --muted:     #5a607a;
  --border:    rgba(255,255,255,0.06);
}

body {
  font-family: 'Exo 2', sans-serif;
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

/* Ambient glow blobs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,245,212,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
}
body::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224,64,251,0.10) 0%, transparent 70%);
  bottom: -80px; right: -80px;
}

/* ── Container ── */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */
.login-container h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
  font-family: 'Exo 2', sans-serif;
}

.login-container h2::before {
  content: '// Narzędzia Endorfina';
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.login-container h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  position: relative;
  padding-bottom: 1.4rem;
  margin-bottom: 2rem;
}

.login-container h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
}

/* ── Alert ── */
.alert {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--neon-red);
  background: rgba(255, 69, 96, 0.08);
  border: 1px solid rgba(255, 69, 96, 0.25);
  border-left: 3px solid var(--neon-red);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  animation: rise 0.4s ease both;
}

/* ── Form ── */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="email"],
input[type="password"] {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: var(--muted);
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0,245,212,0.08), 0 0 16px rgba(0,245,212,0.08);
}

/* ── Buttons ── */
.buttons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

button {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

/* Primary — Zaloguj */
button[name="login"] {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

button[name="login"]:hover {
  background: var(--surface2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0,245,212,0.12), inset 0 0 24px rgba(0,245,212,0.04);
  transform: translateY(-2px);
}

/* Secondary — Odzyskaj hasło */
button[name="recover"],
button.small {
  padding: 0.9rem 1rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

button[name="recover"]:hover,
button.small:hover {
  background: var(--surface2);
  border-color: var(--neon-mag);
  color: var(--neon-mag);
  box-shadow: 0 0 24px rgba(224,64,251,0.12), inset 0 0 24px rgba(224,64,251,0.04);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  body { padding: 1.25rem; align-items: flex-start; padding-top: 3rem; }
  .login-container h2 { font-size: 2.2rem; }
  .buttons { flex-direction: column; }
}