* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #111827, #1f2937, #0f172a);
    color: #111827;
}

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

.login-card,
.painel-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
}

h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

p {
    color: #6b7280;
    line-height: 1.5;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f3f4f6;
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 24px;
}

.tab {
    border: 0;
    background: transparent;
    padding: 12px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    color: #6b7280;
}

.tab.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.form-login {
    display: none;
}

.form-login.active {
    display: block;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #374151;
}

input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

button[type="submit"],
.sair {
    display: inline-block;
    width: 100%;
    border: 0;
    background: #2563eb;
    color: #ffffff;
    padding: 15px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

button[type="submit"]:hover,
.sair:hover {
    background: #1d4ed8;
}

.alerta {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

.painel-card h1 {
    margin-bottom: 16px;
}

.painel-card p {
    margin-bottom: 8px;
}

.sair {
    margin-top: 20px;
}

.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  padding: 30px;
}

.livro-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: center;
}

.livro-card img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}
