/* ============================================================
   PAVI'S LAB — pages/login.css
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
}

.login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,0,127,0.18);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(255,0,127,0.08);
}

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo img {
  height: 52px;
  object-fit: contain;
}

/* ── Tabs ── */
.login-tabs {
  display: flex;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
  margin-bottom: 28px;
}

.login-tab {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.login-tab.active {
  background: var(--pink);
  color: #fff;
}

/* ── Form panels ── */
.login-panel { display: none; }
.login-panel.active { display: block; }

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
}

/* ── Fields ── */
.lf-field {
  margin-bottom: 14px;
  position: relative;
}

.lf-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lf-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
}

.lf-input:focus {
  border-color: var(--pink);
}

.lf-input::placeholder {
  color: rgba(255,255,255,0.25);
}

select.lf-input option {
  background: #1a1a1a;
  color: #fff;
}

/* ── Row ── */
.lf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Password toggle ── */
.lf-pw-wrap {
  position: relative;
}

.lf-pw-wrap .lf-input {
  padding-right: 42px;
}

.lf-pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.lf-pw-eye:hover { color: var(--pink); }

/* ── Submit button ── */
.lf-btn {
  width: 100%;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s;
}

.lf-btn:hover {
  background: #e0005e;
  transform: translateY(-1px);
}

.lf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Switch link ── */
.lf-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.lf-switch a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* ── Error / success message ── */
.lf-msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.lf-msg.show { display: block; }
.lf-msg.error { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.lf-msg.success { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

/* ── Force change password overlay ── */
.fc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fc-box {
  background: #1a1a1a;
  border: 1px solid rgba(255,0,127,0.3);
  border-radius: 18px;
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
}

.fc-box h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 6px;
}

.fc-box p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .login-card { padding: 28px 18px; }
  .lf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PAVI'S SPARKLES — light theme overrides
   ============================================================ */
[data-theme="sparkles"] .login-card { background: #fff; border-color: rgba(255,0,127,0.18); box-shadow: 0 8px 40px rgba(255,0,127,0.1); }
[data-theme="sparkles"] .login-tabs { background: rgba(61,26,46,0.04); }
[data-theme="sparkles"] .login-tab { color: rgba(61,26,46,0.5); }
[data-theme="sparkles"] .login-tab.active { color: #fff; }
[data-theme="sparkles"] .login-title { color: #3d1a2e; }
[data-theme="sparkles"] .login-subtitle { color: rgba(61,26,46,0.45); }
[data-theme="sparkles"] .lf-field label { color: rgba(61,26,46,0.55); }
[data-theme="sparkles"] .lf-input { background: rgba(61,26,46,0.04); border-color: rgba(61,26,46,0.12); color: #3d1a2e; }
[data-theme="sparkles"] .lf-input::placeholder { color: rgba(61,26,46,0.3); }
[data-theme="sparkles"] select.lf-input option { background: #fff; color: #3d1a2e; }
[data-theme="sparkles"] .lf-pw-eye { color: rgba(61,26,46,0.4); }
[data-theme="sparkles"] .lf-switch { color: rgba(61,26,46,0.45); }
[data-theme="sparkles"] .fc-box { background: #fff; border-color: rgba(255,0,127,0.25); }
[data-theme="sparkles"] .fc-box h3 { color: #3d1a2e; }
[data-theme="sparkles"] .fc-box p { color: rgba(61,26,46,0.5); }
