
/* ==========================================
   AON ID — APPLICATION LAYOUT
   Main application structure and responsiveness
========================================== */

#app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#app-content {
  width: 100%;
  max-width: var(--aon-content-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==========================================
   LOADING SCREEN
========================================== */

#app-loading {
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--aon-space-6);
  text-align: center;
  background: var(--aon-bg-dark);
}

.app-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--aon-space-2);
}

.app-logo {
  width: 76px;
  height: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 22px;
  background: var(--aon-primary);
  color: #FFFFFF;
  font-size: 44px;
  font-weight: 800;
  box-shadow: 0 10px 35px rgba(37, 99, 235, 0.25);
}

.app-brand h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

.app-brand p {
  color: var(--aon-text-secondary);
  font-size: 14px;
}

.loading-indicator {
  width: 34px;
  height: 34px;
  margin-top: 36px;
  border: 3px solid var(--aon-border-dark);
  border-top-color: var(--aon-primary);
  border-radius: 50%;
  animation: aon-spin 0.8s linear infinite;
}

.loading-text {
  margin-top: var(--aon-space-4);
  color: var(--aon-text-secondary);
  font-size: 13px;
}

/* ==========================================
   MAIN CONTENT AREA
========================================== */

.app-main {
  width: 100%;
  flex: 1;
  min-width: 0;
  padding: var(--aon-space-4);
}

/* ==========================================
   RESPONSIVE LAYOUT
========================================== */

@media (min-width: 768px) {
  .app-main {
    padding: var(--aon-space-6);
  }
}

@media (min-width: 1100px) {
  #app-content {
    border-left: 1px solid var(--aon-border-dark);
    border-right: 1px solid var(--aon-border-dark);
  }
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes aon-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
