/* ===== LOGIN PAGE ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #071520 0%, #0a4f6e 60%, #071520 100%);
  font-family: 'Sora', sans-serif;
}

.login-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2.5rem 2.8rem;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-card .brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card .brand img {
  width: 130px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 6px;
}

.login-card .brand p {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.login-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.4rem;
  text-align: center;
}

.login-card input {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.login-card input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-card input:focus {
  border-color: rgba(20, 184, 166, 0.6);
  background: rgba(255, 255, 255, 0.11);
}

.login-card button[type="submit"] {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.7rem;
  border-radius: 8px;
  border: none;
  background: #0e7490;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
}

.login-card button[type="submit"]:hover {
  background: #14b8a6;
  transform: translateY(-1px);
}

.login-card button[type="submit"]:active {
  transform: translateY(0);
}

.login-card .toggle {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.login-card .toggle a {
  color: #14b8a6;
  text-decoration: none;
  font-weight: 600;
}

.login-card .toggle a:hover {
  text-decoration: underline;
}

.login-error {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.8rem;
  display: none;
}

.login-error.show {
  display: block;
}

/* ===== USER INFO WIDGET (sidebar) ===== */
.sb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 4px 0 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sb-user-email {
  flex: 1;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .sb-user-email {
  color: rgba(13, 31, 45, 0.65);
}

[data-theme="light"] .sb-user {
  background: rgba(51, 65, 85, 0.08);
  border-color: rgba(51, 65, 85, 0.12);
}

.sb-signout-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  transition: all 0.18s;
}

.sb-signout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

[data-theme="light"] .sb-signout-btn {
  border-color: rgba(13, 31, 45, 0.15);
  color: rgba(13, 31, 45, 0.6);
}

[data-theme="light"] .sb-signout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ===== USER INFO BAR (halaman tanpa sidebar) ===== */
.user-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(7, 21, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.user-bar-email {
  color: rgba(255, 255, 255, 0.6);
}

.user-bar-signout {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  transition: all 0.18s;
}

.user-bar-signout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
