/* ===========================
   LOGIN PAGE — HybridPlayout
   Matches main-admin.css theme
=========================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #1a1a1a;
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---- Background subtle grid pattern ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 170, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 170, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Card ---- */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #222;
  border-radius: 8px;
  border-top: 3px solid #0a0;
  box-shadow: 0 0 40px rgba(0, 170, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.6);
  padding: 40px 36px 32px;
}

/* ---- Brand header ---- */
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand .signal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #111;
  border: 2px solid #0a0;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(0, 255, 0, 0.2);
}

.login-brand .signal-icon i {
  color: #0f0;
  font-size: 22px;
}

.login-brand h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #0f0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-brand p {
  margin: 0;
  font-size: 11px;
  color: #666;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---- Form ---- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.form-group input {
  background: #111;
  color: #0f0;
  border: 1px solid #444;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Segoe UI', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus {
  border-color: #0a0;
  box-shadow: 0 0 0 2px rgba(0, 170, 0, 0.15);
}

.form-group input::placeholder {
  color: #444;
}

/* ---- Submit button ---- */
.btn-login {
  margin-top: 8px;
  cursor: pointer;
  padding: 11px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  color: #fff;
  background: #0a0;
  font-size: 13px;
  font-family: 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-login:hover {
  background: #0c0;
  box-shadow: 0 0 12px rgba(0, 204, 0, 0.3);
}

.btn-login:active {
  background: #080;
}

.btn-login:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---- Error message ---- */
.login-error {
  display: none;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #f44;
  border-left: 4px solid #f44;
  color: #f88;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 4px;
}

.login-error.visible {
  display: block;
}

/* ---- Divider ---- */
.login-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 24px 0 16px;
}

/* ---- Register link ---- */
.login-footer {
  text-align: center;
  font-size: 12px;
  color: #555;
}

.login-footer a {
  color: #0a0;
  text-decoration: none;
  font-weight: bold;
}

.login-footer a:hover {
  color: #0f0;
}

/* ---- Live indicator top-right corner ---- */
.live-corner {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: bold;
  color: #0f0;
  letter-spacing: 1px;
  z-index: 10;
}

.live-corner .dot {
  width: 8px;
  height: 8px;
  background: #0f0;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ---- Loading spinner inside button ---- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-login .spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-login.loading .spinner-sm {
  display: inline-block;
}

.btn-login.loading .btn-label {
  opacity: 0.6;
}
