/* LOKOO Admin Login — Dark Theme (Rev A) */
/* Matches lokoo.in home: deep black + Lokoo red hover accents */

:root {
  --lok-bg: #0a0a0a;
  --lok-surface: #141414;
  --lok-surface-2: #1a1a1a;

  --lok-text-1: #ffffff;
  --lok-text-2: rgba(255,255,255,0.82);
  --lok-text-3: rgba(255,255,255,0.65);

  --lok-border: rgba(255,255,255,0.12);
  --lok-border-strong: rgba(255,255,255,0.22);

  --lok-red: #E50914;
  --lok-red-hover: #bf0810;
  --lok-red-soft: rgba(229,9,20,0.12);

  --lok-shadow-lg: 0 30px 80px -40px rgba(0,0,0,0.9);
  --lok-focus: 0 0 0 3px rgba(229,9,20,0.18), 0 20px 50px -20px rgba(229,9,20,0.35);
}

/* Page background – force dark like homepage */
body {
  background: var(--lok-bg) !important;
  color: var(--lok-text-1);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Card container */
.login-container {
  background: var(--lok-surface);
  border: 1px solid var(--lok-border);
  border-radius: 16px;
  color: var(--lok-text-1);
  box-shadow: var(--lok-shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .login-container { padding: 2.5rem; }
}

/* Thin red top bar */
.login-container::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--lok-red);
}

/* Lock icon pill */
.login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.25rem;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(229,9,20,0.36), transparent 60%),
    linear-gradient(180deg, var(--lok-red), var(--lok-red-hover));
  box-shadow: 0 16px 40px -14px rgba(229,9,20,0.55);
}

/* Titles */
.login-title {
  color: var(--lok-text-1);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.015em;
  margin-bottom: .25rem;
}

@media (min-width: 480px) {
  .login-title { font-size: 2.25rem; }
}

.login-subtitle {
  color: var(--lok-text-3);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Demo creds panel */
.demo-credentials {
  background: rgba(229,9,20,0.06);
  border: 1px solid var(--lok-border);
  border-left: 4px solid var(--lok-red);
  border-radius: 12px;
  padding: 1rem;
  color: var(--lok-text-2);
  margin-bottom: 1.25rem;
}
.demo-credentials h4 {
  color: var(--lok-red);
  margin: 0 0 .5rem 0;
  font-weight: 700;
}
.demo-credentials p { margin: .25rem 0; }
.demo-credentials code {
  background: var(--lok-surface-2);
  color: #fff;
  padding: .15rem .4rem;
  border-radius: 6px;
  font-weight: 700;
}
.quick-fill { text-align: left; margin-top: .5rem; }
.quick-fill button {
  background: transparent;
  border: 1px solid var(--lok-border);
  color: var(--lok-text-3);
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .15s ease;
}
.quick-fill button:hover {
  border-color: var(--lok-red);
  color: var(--lok-red);
  background: var(--lok-red-soft);
  transform: translateY(-1px);
}

/* Form */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  color: var(--lok-text-2);
  margin-bottom: .55rem;
  font-weight: 600;
  font-size: 14px;
}

/* Inputs – DARK, with white text */
.form-input {
  width: 100%;
  background: var(--lok-surface-2);
  color: var(--lok-text-1);
  border: 1px solid var(--lok-border);
  border-radius: 12px;
  padding: .9rem 1rem;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .08s ease;
}
.form-input::placeholder { color: var(--lok-text-3); }
.form-input:focus {
  outline: none;
  border-color: var(--lok-red);
  box-shadow: var(--lok-focus);
  background: #161616;
}

/* Password show/hide button (if present) */
#togglePass {
  background: transparent;
  color: var(--lok-text-3);
  border: 1px solid var(--lok-border);
  border-radius: 10px;
  padding: .35rem .6rem;
  cursor: pointer;
  transition: all .2s ease;
}
#togglePass:hover {
  border-color: var(--lok-red);
  color: var(--lok-red);
  background: var(--lok-red-soft);
}

/* CTA button – red with white text + hover like home */
.btn-login {
  width: 100%;
  background: var(--lok-red);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1rem;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  margin-top: .2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 22px 46px -18px rgba(229,9,20,0.65);
  transition: transform .12s ease, box-shadow .2s ease, background-color .15s ease;
}
.btn-login:hover {
  background: var(--lok-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 30px 56px -20px rgba(229,9,20,0.7);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Alerts */
.alert {
  border-radius: 12px;
  padding: .9rem 1rem;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid var(--lok-border);
}
.alert-error {
  background: rgba(229,9,20,0.12);
  border-color: rgba(229,9,20,0.45);
  color: #ffb3b7; /* readable red-on-dark */
}
.alert-success {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.38);
  color: #b6f5d0;
}

/* Footer link */
.back-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lok-border);
  text-align: center;
}
.back-link a {
  color: var(--lok-text-3);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease, text-shadow .2s ease;
}
.back-link a:hover {
  color: var(--lok-red);
  text-shadow: 0 0 24px rgba(229,9,20,0.35);
}

/* Spacing & responsiveness */
@media (max-width: 480px) {
  body { padding: 1rem; }
  .login-container { padding: 1.5rem; }
  .form-group { margin-bottom: 1rem; }
  .login-title { font-size: 1.9rem; }
  .demo-credentials { padding: .85rem; }
}
@media (min-width: 768px) {
  .login-container { max-width: 480px; }
}

/* === LOKOO Admin Login — final overrides (persistent red inputs + red CTA) === */

/* Vars (fallbacks in case your theme file doesn't define them) */
:root {
  --lok-red: #E50914;
  --lok-red-hover: #bf0810;
  --lok-red-soft: rgba(229, 9, 20, 0.14);
  --lok-text-1: #ffffff;
  --lok-surface-2: #1a1a1a;
  --lok-border: rgba(255,255,255,0.14);
}

/* 1) Inputs always red-bordered + white text */
.login-container .form-input {
  background: var(--lok-surface-2) !important;
  color: var(--lok-text-1) !important;
  border: 1.5px solid var(--lok-red) !important;  /* keep red all the time */
  border-radius: 12px !important;
  box-shadow: 0 0 0 0 var(--lok-red-soft) !important;
  caret-color: var(--lok-text-1);
}

/* Focus = slightly stronger glow */
.login-container .form-input:focus,
.login-container .form-input:focus-visible {
  outline: none !important;
  border-color: var(--lok-red) !important;
  box-shadow: 0 0 0 3px var(--lok-red-soft) !important;
  background: #161616 !important;
}

/* Placeholder subtler */
.login-container .form-input::placeholder {
  color: rgba(255,255,255,0.6) !important;
}

/* Dark autofill fix (Chrome/Edge/Safari) */
.login-container input.form-input:-webkit-autofill,
.login-container input.form-input:-webkit-autofill:hover,
.login-container input.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lok-text-1) !important;
  caret-color: var(--lok-text-1) !important;
  transition: background-color 9999s ease-in-out 0s !important;
  box-shadow: 0 0 0px 1000px var(--lok-surface-2) inset !important;
  border: 1.5px solid var(--lok-red) !important;
}

/* 2) CTA button = solid red with white text + red hover */
.btn-login {
  background: var(--lok-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 22px 46px -18px rgba(229,9,20,0.65) !important;
  transition: transform .12s ease, box-shadow .2s ease, background-color .15s ease !important;
}

.btn-login:hover {
  background: var(--lok-red-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 30px 56px -20px rgba(229,9,20,0.7) !important;
}

.btn-login:active { transform: translateY(0) !important; }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* 3) Error alert red on dark */
.alert-error {
  background: rgba(229,9,20,0.12) !important;
  border: 1px solid rgba(229,9,20,0.45) !important;
  color: #ffb3b7 !important;
  border-radius: 12px !important;
}

/* 4) Page background to match homepage dark (optional if already set) */
body {
  background: #0a0a0a !important;
  color: var(--lok-text-1) !important;
}
/* === LOKOO Admin Login — subtle highlight style for inputs === */
:root{
  --lok-red: #E50914;
  --lok-red-hover:#bf0810;
  --lok-text:#fff;
  --lok-input-bg:#141414;            /* dark fill to match homepage */
  --lok-input-border: rgba(255,255,255,0.14);
  --lok-input-border-hover: rgba(229,9,20,0.45);
  --lok-input-ring: rgba(229,9,20,0.16);
}

.login-container .form-label{
  color: rgba(255,255,255,0.85) !important;
}

/* Base input: neutral border + subtle left red bar (not full red outline) */
.login-container .form-input{
  background: var(--lok-input-bg) !important;
  color: var(--lok-text) !important;
  border: 1px solid var(--lok-input-border) !important;
  border-radius: 12px !important;
  /* left accent bar + tiny top highlight for depth */
  box-shadow:
    inset 3px 0 0 var(--lok-red),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  caret-color: var(--lok-text);
  transition: border-color .15s ease, box-shadow .18s ease, background-color .15s ease !important;
}

/* Hover: nudge border toward brand red */
.login-container .form-input:hover{
  border-color: var(--lok-input-border-hover) !important;
}

/* Focus: thicker accent + soft outer ring */
.login-container .form-input:focus,
.login-container .form-input:focus-visible{
  outline: none !important;
  border-color: var(--lok-input-border-hover) !important;
  box-shadow:
    inset 4px 0 0 var(--lok-red),
    0 0 0 3px var(--lok-input-ring) !important;
  background: #0f0f0f !important;
}

/* Placeholder calmer on dark */
.login-container .form-input::placeholder{
  color: rgba(255,255,255,0.6) !important;
}

/* Autofill fix on dark */
.login-container input.form-input:-webkit-autofill,
.login-container input.form-input:-webkit-autofill:hover,
login-container input.form-input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--lok-text) !important;
  transition: background-color 9999s ease-in-out 0s !important;
  box-shadow: 0 0 0px 1000px var(--lok-input-bg) inset !important,
              inset 3px 0 0 var(--lok-red) !important;
  border: 1px solid var(--lok-input-border) !important;
}

/* Error alert stays clear on dark */
.alert-error{
  background: rgba(229,9,20,0.12) !important;
  border: 1px solid rgba(229,9,20,0.45) !important;
  color: #ffb3b7 !important;
  border-radius: 12px !important;
}

/* Keep the CTA button solid red (as requested earlier) */
.btn-login{
  background: var(--lok-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 22px 46px -18px rgba(229,9,20,0.65) !important;
  transition: transform .12s ease, box-shadow .2s ease, background-color .15s ease !important;
}
.btn-login:hover{ background: var(--lok-red-hover) !important; transform: translateY(-1px) !important; }
.btn-login:active{ transform: translateY(0) !important; }
