/* === Auth layout (login + password reset) === */
.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-layout__hero {
  background: var(--gradient-primary);
  padding: var(--space-6);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.auth-layout__hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.auth-layout__brand img { height: 36px; }
.auth-layout__tagline {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0;
}
.auth-layout__main {
  flex: 1;
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-layout__card {
  width: 100%;
  max-width: 420px;
}

@media (min-width: 900px) {
  .auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .auth-layout__hero {
    padding: var(--space-12);
    justify-content: space-between;
  }
  .auth-layout__brand img { height: 48px; }
  .auth-layout__tagline {
    font-size: var(--font-size-2xl);
    max-width: 400px;
  }
  .auth-layout__hero::after {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
  }
  .auth-layout__main {
    padding: var(--space-12);
    justify-content: center;
  }
}

/* === App layout (autenticado) === */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-layout__main {
  flex: 1;
  min-width: 0;
}
.app-layout__content {
  padding: var(--space-4);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.app-layout__scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 20;
}
[data-sidebar-open='true'] .app-layout__scrim { display: block; }
[data-sidebar-open='true'] body { overflow: hidden; }

@media (min-width: 900px) {
  .app-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
  }
  .app-layout__scrim { display: none !important; }
  .app-layout__content {
    padding: var(--space-8);
    max-width: 1200px;
  }
}
