* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f1f5f9;
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.card h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  color: #94a3b8;
}

.card h2 {
  margin: 4px 0 20px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#passwordInput {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  text-align: center;
}

#passwordInput:focus {
  border-color: #38bdf8;
}

#loginForm button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

#loginForm button:hover {
  background: #0ea5e9;
}

.error {
  margin-top: 14px;
  color: #f87171;
  font-size: 0.85rem;
  min-height: 1em;
}

/* HALAMAN INTI */
#content {
  flex-direction: column;
  align-items: stretch;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
}

.topbar button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.topbar button:hover {
  background: #dc2626;
}

#pdfFrame {
  flex: 1;
  width: 100%;
  height: calc(100vh - 52px);
  border: none;
}
