/*
 * KVSTube — Custom Login / Register Page
 * Completely replaces WP branding with tube-site identity
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & background ──────────────────────────────────── */
body.login {
  background: #09090f !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
body.login div#login { width: 100%; max-width: 420px; padding: 0; }

/* ── Kill WP logo, replace with site name ─────────────────── */
body.login h1 a {
  background-image: none !important;
  background-size: 0 !important;
  text-indent: 0 !important;
  width: auto !important; height: auto !important;
  padding: 0 !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; gap: 10px !important;
  font-size: 1.4rem !important; font-weight: 800 !important;
  color: #fff !important; text-decoration: none !important;
  margin-bottom: 4px !important; font-family: 'Inter',sans-serif !important;
}
body.login h1 a::before {
  content: '▶';
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  font-size: 15px; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(21,101,192,.45);
}

/* ── Login card ──────────────────────────────────────────── */
body.login #loginform,
body.login #lostpasswordform,
body.login #registerform {
  background: #0f1117 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.6) !important;
  padding: 28px 28px 22px !important;
  margin-top: 14px !important;
}

/* ── Labels ──────────────────────────────────────────────── */
body.login label {
  color: #8e96b0 !important;
  font-size: .72rem !important; font-weight: 700 !important;
  letter-spacing: .04em !important; text-transform: uppercase !important;
}

/* ── Inputs ──────────────────────────────────────────────── */
body.login .input,
body.login input[type=text],
body.login input[type=password],
body.login input[type=email] {
  background: #161b27 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 8px !important;
  color: #eef0f8 !important;
  font-size: .9rem !important;
  padding: 10px 14px !important;
  height: auto !important;
  box-shadow: none !important;
  transition: border-color .18s !important;
  font-family: 'Inter',sans-serif !important;
}
body.login .input:focus,
body.login input[type=text]:focus,
body.login input[type=password]:focus {
  border-color: #1976d2 !important;
  box-shadow: 0 0 0 3px rgba(25,118,210,.2) !important;
  outline: none !important;
  background: #1a2035 !important;
}

/* ── Submit button ───────────────────────────────────────── */
body.login .button-primary,
body.login input[type=submit],
body.login #wp-submit {
  background: linear-gradient(135deg, #1565c0, #1976d2) !important;
  border: none !important; border-radius: 8px !important;
  color: #fff !important; font-size: .9rem !important;
  font-weight: 700 !important; font-family: 'Inter',sans-serif !important;
  height: auto !important; padding: 12px 24px !important;
  width: 100% !important; cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(21,101,192,.4) !important;
  transition: all .18s !important;
  text-shadow: none !important;
}
body.login .button-primary:hover,
body.login input[type=submit]:hover {
  background: linear-gradient(135deg, #0d47a1, #1565c0) !important;
  box-shadow: 0 6px 20px rgba(21,101,192,.55) !important;
  transform: translateY(-1px);
}

/* ── Remember me ─────────────────────────────────────────── */
body.login .forgetmenot label { color: #5a6180 !important; font-size: .78rem !important; text-transform: none !important; letter-spacing: 0 !important; }
body.login .forgetmenot input[type=checkbox] { accent-color: #1976d2; }

/* ── Nav links (lost password, register etc.) ────────────── */
body.login #nav,
body.login #backtoblog { display: none !important; }

/* Custom footer links we inject via PHP */
.kvs-login-footer {
  text-align: center; margin-top: 18px;
  font-size: .78rem; color: #5a6180;
}
.kvs-login-footer a { color: #4a8fff; text-decoration: none; font-weight: 600; }
.kvs-login-footer a:hover { text-decoration: underline; }
.kvs-login-footer .kvs-lf-sep { margin: 0 8px; opacity: .4; }

/* ── Welcome message ─────────────────────────────────────── */
.kvs-login-welcome {
  text-align: center; margin-bottom: 18px;
  color: #5a6180; font-size: .82rem; line-height: 1.6;
}
.kvs-login-welcome strong { color: #8e96b0; }

/* ── Error messages ──────────────────────────────────────── */
body.login #login_error,
body.login .message,
body.login .notice {
  background: rgba(255,77,109,.1) !important;
  border-left: 3px solid #ff4d6d !important;
  color: #ff9eb5 !important; border-radius: 6px !important;
  font-size: .82rem !important; padding: 10px 14px !important;
  margin-bottom: 14px !important;
}
body.login .message { border-left-color: #4a8fff !important; background: rgba(74,143,255,.1) !important; color: #90caf9 !important; }

/* ── Password strength ───────────────────────────────────── */
body.login #pass-strength-result {
  background: #1e2535 !important; border-color: rgba(255,255,255,.1) !important;
  color: #8e96b0 !important; border-radius: 6px !important;
}

/* ── Language switcher hidden ───────────────────────────── */
body.login .language-switcher { display: none !important; }

/* ── Privacy policy link ─────────────────────────────────── */
body.login .wp-login-form-below-login { color: #5a6180; font-size: .72rem; }
