/* =============================================
   NSP IBE — Login Page  v3.0
   Purple brand · fixed lang button · no panel jump
   ============================================= */

:root {
  --p:   #7C3AED;
  --pd:  #6027CC;
  --pb:  #F0EBFF;
  --c:   #00BCD4;
  --bg:  #0A1628;
  --t1:  #0F1120;
  --t2:  #64748B;
  --b1:  #E4E7F0;
  --b2:  #C8CDE0;
  --font:'Inter',-apple-system,'Segoe UI',sans-serif;
}

/* ── PAGE ── */
body.login-page {
  font-family: var(--font);
  font-size: 14px;
  color: var(--t1);
  overflow: hidden;
}

.s-full-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, #003d8c 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, #00255c 0%, transparent 60%),
    #0A1628;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.s-container-tight { max-width: 40rem !important; }

/* ── FLOATING CIRCLES ── */
.login-background-decoration {
  position: absolute; width: 100%; height: 100%;
  overflow: hidden; z-index: 0;
}
.circle {
  position: absolute; border-radius: 50%;
  background: rgba(0,122,227,.06);
  animation: float 8s ease-in-out infinite;
}
.circle-1 { width:500px; height:500px; top:-100px;  left:-150px; animation-delay:0s; }
.circle-2 { width:350px; height:350px; bottom:-80px; right:-100px; animation-delay:-3s; }
.circle-3 { width:200px; height:200px; top:40%;     left:70%;    animation-delay:-5s; }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.04); }
}

/* ── LANG TOGGLE — fixed, outside card, no jump ── */
#nsp-lang-toggle {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  left: auto !important;
  z-index: 9999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 20px !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: background .2s, color .2s !important;
  letter-spacing: .02em !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
#nsp-lang-toggle:hover {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}

/* ── CARD WRAPPER ── */
.login-container-wrapper {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  padding: 20px;
  animation: rise .5s cubic-bezier(.22,.61,.36,1);
}
@keyframes rise {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── CARD ── */
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
/* purple top bar */
.login-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0;
  height: 3px;
  background: linear-gradient(90deg, var(--p) 0%, var(--c) 100%);
}
/* kill any hover transform */
.login-card:hover { transform: none !important; }

/* ── LOGO ── */
.nsp-login-logo {
  display: block;
  height: 32px;
  object-fit: contain;
  margin: 0 auto 16px;
}



/* ── WORKSPACE BADGE ── */
.nsp-ws-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #EEF2FF, #E8F4FD);
  border: 1px solid #C7D7F9;
  color: #3730A3;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .05em;
  margin-bottom: 18px;
}
.nsp-ws-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  flex-shrink: 0;
}

/* ── HEADER ── */
.login-header { text-align: center; margin-bottom: 24px; }
.login-title  { font-size: 21px; font-weight: 700; color: var(--t1); margin: 0 0 6px; letter-spacing: -.3px; }
.login-subtitle { font-size: 14px; color: var(--t2); margin: 0; }

/* ── INPUTS ── */
.property-grid-enhanced .field,
#LoginPanel .field { margin-bottom: 18px; }

.property-grid-enhanced .field .caption[style*="width: 0"],
#LoginPanel .field .caption[style*="width: 0"] { display: none !important; }

.property-grid-enhanced input[type="text"],
.property-grid-enhanced input[type="password"],
#LoginPanel input[type="text"],
#LoginPanel input[type="password"] {
  width: 100% !important;
  /* padding: 12px 44px !important;*/
  padding: 12px 44px 12px 48px !important;
  border: 1.5px solid var(--b1) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: var(--font) !important;
  color: var(--t1) !important;
  background: #FAFBFC !important;
  outline: none !important;
  transition: border-color .2s, background .2s, box-shadow .2s !important;
  transform: none !important;
  box-shadow: none !important;
}
.property-grid-enhanced input::placeholder,
#LoginPanel input::placeholder { color: #CBD5E0; font-weight: 400; }

.property-grid-enhanced input:focus,
#LoginPanel input:focus {
  border-color: var(--p) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,.1) !important;
  transform: none !important;
}
.property-grid-enhanced input:hover:not(:focus),
#LoginPanel input:hover:not(:focus) {
  border-color: var(--b2) !important;
  background: #fff !important;
  transform: none !important;
}
.property-grid-enhanced input.is-invalid,
#LoginPanel input.is-invalid {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}

/* ── OPTIONS ── */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 8px;
}
.remember-me-container {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; user-select: none; font-size: 13px; color: #475569;
}
.remember-me-container input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--p); cursor: pointer;
}
.checkmark { display: none; }
.forgot-password-link {
  font-size: 13px; color: var(--p); text-decoration: none; font-weight: 500;
}
.forgot-password-link:hover { color: var(--pd); }

/* ── SIGN IN BTN ── */
.btn-login {
  width: 100%;
  padding: 13px 20px;
  background: var(--p);
  color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
  transition: background .2s, box-shadow .2s, transform .1s;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}
.btn-login::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.btn-login:hover   { background: var(--pd); box-shadow: 0 6px 24px rgba(124,58,237,.45); transform: translateY(-1px); }
.btn-login:active  { transform: translateY(0); }
.btn-login:disabled{ opacity: .6; cursor: not-allowed; transform: none; }

.btn-loader {
  display: none; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
.btn-login.loading .btn-text  { opacity: 0; position: absolute; }
.btn-login.loading .btn-loader{ display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ── */
.login-footer {
  text-align: center;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--b1);
}
.copyright-text { font-size: 12px; color: #94A3B8; display: block; margin-bottom: 8px; }
.footer-links {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.footer-link { font-size: 12px; color: #94A3B8; text-decoration: none; }
.footer-link:hover { color: var(--p); }
.footer-links span { color: #E2E8F0; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .login-card { padding: 32px 24px 28px; }
  .login-container-wrapper { padding: 16px; }
  #nsp-lang-toggle { top: 12px; right: 12px; }
}
