/* ══════════════════════════════════════
   KlimaatCasino – Docent Login Page
   Design system from wireframe v4
══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --green-deep:   #1a4a1a;
  --green-mid:    #2d7a2d;
  --green-bright: #4caf50;
  --green-neon:   #7fff00;
  --gold:         #ffd700;
  --red:          #e53935;
  --white:        #f5f5f0;
  --dark:         #0d1f0d;
  --darker:       #060f06;

  --panel-bg:     rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.13);

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
}

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

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse 90% 70% at 50% 20%, #1e4a1e 0%, #0d1f0d 55%, #060f06 100%);
  min-height: 100vh;
  color: var(--white);
  overflow-x: hidden;
}

/* ── Page shell ── */
.lp-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Falling chips ── */
.lp-chips {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.15;
  z-index: 0;
}

.lp-chip {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: lpChipFall linear infinite;
}

@keyframes lpChipFall {
  0%   { transform: translateY(-60px) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ── Wrapper ── */
.lp-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 16px;
  width: 100%;
}

/* ── Card ── */
.lp-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,215,0,0.06);
}

/* ── Header ── */
.lp-header {
  text-align: center;
  margin-bottom: 28px;
}

.lp-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-neon);
  font-weight: 700;
  margin-bottom: 14px;
}

.lp-logo {
  width: 90px;
  margin-bottom: 14px;
  opacity: 0.92;
}

.lp-title {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(255, 215, 0, 0.35);
  line-height: 1;
  margin-bottom: 6px;
}

.lp-subtitle {
  font-size: 13px;
  color: rgba(245, 245, 240, 0.45);
  font-weight: 400;
}

/* ── Error ── */
.lp-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.35);
  color: rgba(255, 150, 148, 0.95);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.lp-error-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* ── Form ── */
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lp-field {
  margin-bottom: 18px;
}

.lp-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-neon);
  margin-bottom: 8px;
}

/* Django-rendered inputs */
.lp-field input,
.lp-form input[type="text"],
.lp-form input[type="password"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}

.lp-field input::placeholder,
.lp-form input::placeholder {
  color: rgba(245, 245, 240, 0.25);
}

.lp-field input:focus,
.lp-form input:focus {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* ── Password wrap ── */
.lp-password-wrap {
  position: relative;
}

.lp-password-wrap input {
  padding-right: 44px;
}

.lp-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
  transition: opacity 0.15s;
  line-height: 1;
  user-select: none;
}

.lp-toggle:hover {
  opacity: 1;
}

/* ── Submit button ── */
.lp-btn-submit {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  background: var(--gold);
  color: var(--darker);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.lp-btn-submit:hover {
  background: #ffe033;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}

.lp-btn-submit:active {
  transform: translateY(0);
}

/* ── Forgot password ── */
.lp-forgot-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(245, 245, 240, 0.4);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 245, 240, 0.2);
}

.lp-forgot-link:hover {
  color: var(--white);
}

.lp-forgot-box {
  display: none;
  margin-top: 14px;
  background: rgba(127, 255, 0, 0.06);
  border: 1px solid rgba(127, 255, 0, 0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  animation: lpFadeIn 0.2s ease;
}

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

.lp-forgot-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.4);
  margin-bottom: 4px;
}

.lp-forgot-email {
  font-size: 15px;
  color: var(--green-neon);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Footer note ── */
.lp-footer-note {
  font-size: 12px;
  color: rgba(245, 245, 240, 0.25);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .lp-card {
    padding: 28px 22px 24px;
  }

  .lp-title {
    font-size: 44px;
  }
}