/* ── Design tokens e reset base in shared/styles-base.css ── */

/* ───────────────────────────────────────────────────────────────
   BASE (app-landing specific)
─────────────────────────────────────────────────────────────── */
body { font-family: var(--font); background: var(--c-sidebar); color: var(--c-text); line-height: 1.5; min-height: 100vh; }

/* ───────────────────────────────────────────────────────────────
   SHELL — full-viewport centered layout
─────────────────────────────────────────────────────────────── */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgb(14 165 233 / .08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgb(14 165 233 / .05) 0%, transparent 50%),
    var(--c-sidebar);
}

/* ───────────────────────────────────────────────────────────────
   AUTH SPINNER — mostrato mentre MSAL carica
─────────────────────────────────────────────────────────────── */
.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  color: var(--c-sidebar-text);
  font-size: .9rem;
}
.auth-loading__brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-accent);
  text-transform: uppercase;
}

/* ───────────────────────────────────────────────────────────────
   LANDING CARD — contenitore principale
─────────────────────────────────────────────────────────────── */
.landing-wrap {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.landing-header {
  text-align: center;
}
.landing-header__brand {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .5rem;
}
.landing-header__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-sidebar-active);
  line-height: 1.2;
  margin-bottom: .4rem;
}
.landing-header__user {
  font-size: .9rem;
  color: var(--c-sidebar-text);
}
.landing-header__user strong {
  color: var(--c-sidebar-active);
  font-weight: 500;
}

/* ───────────────────────────────────────────────────────────────
   APP CARDS GRID
─────────────────────────────────────────────────────────────── */
.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.app-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgb(255 255 255 / .06);
  transition: transform .15s, box-shadow .15s;
  cursor: default;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .15), 0 8px 10px -6px rgb(0 0 0 / .1);
}

.app-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--c-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
}

.app-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
}
.app-card__desc {
  font-size: .875rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
}

.app-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .65rem 1.25rem;
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
  text-decoration: none;
}
.app-card__btn:hover { background: var(--c-accent-dark); }

/* ───────────────────────────────────────────────────────────────
   SPINNER
─────────────────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgb(255 255 255 / .15);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────────────────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────────────────────── */
.landing-footer {
  text-align: center;
  font-size: .78rem;
  color: var(--c-sidebar-muted);
}

/* ───────────────────────────────────────────────────────────────
   RESPONSIVE — mobile
─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .app-cards {
    grid-template-columns: 1fr;
  }
  .landing-header__title {
    font-size: 1.25rem;
  }
}
