/* ============================================================
   MORELI — Creative Editorial & Professional Dashboard / Login
   ============================================================ */

/* ══ LOGIN PAGE — FULL SCREEN OPTIMIZED SPACE ══════════════ */
.login-body {
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}

.login-card-container {
  width: 100%;
  max-width: 1120px;
  min-height: clamp(560px, 78vh, 680px);
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

/* Left Brand Panel — Brand Blue (#3E5D93) */
.login-left-panel {
  background: #3E5D93;
  color: #FFFFFF;
  padding: clamp(36px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.login-left-panel h2 {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-top: 24px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.login-left-panel p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.login-feature-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-feature-list li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: #FEF9C3;
  color: #854D0E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.login-testimonial {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.login-testimonial p {
  font-size: 0.9rem;
  color: #F8FAFC;
  font-style: italic;
  margin: 0;
}

/* Right Form Panel */
.login-right-panel {
  padding: clamp(36px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.login-header {
  margin-bottom: 32px;
}

.login-header h1 {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.login-form-group {
  margin-bottom: 22px;
}

.login-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-input-wrapper {
  position: relative;
  width: 100%;
}

.login-input-wrapper input {
  width: 100%;
  height: 50px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-surface);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition);
}

.login-input-wrapper input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(108, 8, 32, 0.12);
}

.login-toggle-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-toggle-eye:hover {
  color: var(--crimson);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: 0.88rem;
}

.login-remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
}

.login-remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--crimson);
  cursor: pointer;
}

.login-forgot-link {
  color: var(--crimson);
  font-weight: 700;
}

.login-forgot-link:hover {
  text-decoration: underline;
}

.login-footer-links {
  margin-top: 32px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-footer-links a {
  color: var(--crimson);
  font-weight: 700;
}

/* ══ DASHBOARD LAYOUT ══════════════════════════════════════ */
.dash-body {
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
}

.dash-sidebar {
  width: 270px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.dash-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 28px;
}

.dash-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}

.dash-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dash-nav-link:hover {
  background: var(--bg-page);
  color: var(--text-main);
}

.dash-nav-link.active {
  background: var(--crimson-subtle);
  color: var(--crimson);
  font-weight: 700;
}

.dash-sidebar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border-card);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--crimson);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Area */
.dash-main {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-topbar {
  height: 76px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}

.dash-topbar__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.dash-content {
  padding: 36px;
  flex: 1;
}

/* Cards */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.dash-card__icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.dash-card__value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.dash-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tables */
.table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-card);
}

thead th {
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: left;
}

tbody tr {
  border-bottom: 1px solid var(--border-card);
}

tbody td {
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.pago       { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.status-badge.pendente   { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.status-badge.vencido    { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.status-badge.processando{ background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

@media (max-width: 1024px) {
  .login-card-container { grid-template-columns: 1fr; }
  .login-left-panel { display: none; }
  .login-right-panel { padding: 40px 24px; }
  .dash-sidebar { display: none; }
  .dash-main { margin-left: 0; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
}
