:root {
  --line: #2a2a2a;
  --white: #f5f5f5;
  --muted: #b7b7b7;
  --accent-1: #b55fe6;
  --accent-2: #3553eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.login-page {
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #070707 url("/static/bg_login.jpg") no-repeat center center fixed;
  background-size: cover;
  padding: 24px;
  overflow: hidden;
}

body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 98%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(90deg, transparent 98%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 42px 42px;
  opacity: 0.25;
}

.login-card {
  width: min(100%, 440px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 40px rgba(181, 95, 230, 0.25);
  animation: cardIn 0.55s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes cardIn {
  from { transform: translateY(18px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.card-header {
  padding: 28px 30px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(181, 95, 230, 0.95), rgba(53, 83, 235, 0.9)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 8px, transparent 8px, transparent 16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-text {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 30px;
  color: #fff;
}

.premium-tag {
  margin-top: 8px;
  display: inline-block;
  background: #ffffff;
  color: #111111;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 800;
}

.card-subtitle {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.4px;
}

.card-body { padding: 30px; }

.alert-box {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  border: 1px solid transparent;
}

.alert-error {
  background: rgba(255, 31, 45, 0.12);
  border-color: rgba(255, 31, 45, 0.45);
  color: #ffd3d6;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #d2d2d2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.input-group { position: relative; }

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #818181;
  font-size: 15px;
  transition: color 0.25s ease;
}

.form-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #141414;
  color: var(--white);
  padding: 13px 14px 13px 42px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-input::placeholder { color: #7d7d7d; }

.form-input:focus {
  outline: none;
  border-color: rgba(181, 95, 230, 0.7);
  box-shadow: 0 0 0 3px rgba(181, 95, 230, 0.25);
  background: #171717;
}

.input-group:focus-within .input-icon { color: #bd53e9; }

.login-btn {
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 13px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 20px rgba(53, 83, 235, 0.35);
  font-family: inherit;
}

.login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(53, 83, 235, 0.42);
}

.pulse { animation: buttonPulse 2.2s infinite; }

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 10px 20px rgba(53, 83, 235, 0.35); }
  50% { box-shadow: 0 14px 32px rgba(53, 83, 235, 0.48); }
}

.watermark {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.28);
  z-index: 1;
}

@media (max-width: 480px) {
  body.login-page { padding: 14px; }
  .card-header, .card-body { padding: 24px 20px; }
  .brand-text { font-size: 26px; }
}
