/* ==========================================================================
   Hypecast Page Layouts
   Depends on tokens.css being loaded first.
   All classes use the hc- prefix.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Container
   -------------------------------------------------------------------------- */

.hc-page {
  min-height: 100vh;
  background-color: var(--hc-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Auth Page Layout (login, register, forgot password, reset password, invite)
   Centers a card vertically and horizontally. Inside the card: logo, subtitle,
   form fields, button, links.
   -------------------------------------------------------------------------- */

.hc-auth-page {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 5vh var(--hc-space-md) var(--hc-space-xl);
}

@media (max-width: 767px) {
  .hc-auth-page {
    padding: var(--hc-space-xl) var(--hc-space-md);
  }
}

/* --------------------------------------------------------------------------
   Manage Page Layout (account management pages)
   Same as auth page but wider.
   -------------------------------------------------------------------------- */

.hc-manage-page {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: var(--hc-space-xl) var(--hc-space-md);
  max-width: var(--hc-card-width);
}

@media (max-width: 767px) {
  .hc-manage-page {
    padding: var(--hc-space-md);
  }
}

/* --------------------------------------------------------------------------
   Confirm Page Layout (confirmation/status pages)
   Centers an icon, heading, message, and action link.
   -------------------------------------------------------------------------- */

.hc-confirm-page {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: var(--hc-space-xl) var(--hc-space-md);
  max-width: var(--hc-form-width);
  text-align: center;
}

@media (max-width: 767px) {
  .hc-confirm-page {
    padding: var(--hc-space-md);
  }
}

/* --------------------------------------------------------------------------
   Application Grid Layout (application selection pages)
   -------------------------------------------------------------------------- */

.hc-app-container {
  width: 100%;
  max-width: var(--hc-page-max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.hc-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: var(--hc-space-md);
}

.hc-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .hc-app-grid {
    grid-template-columns: 1fr;
  }
}

.hc-tenant-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
}

.hc-tenant-header {
  text-align: center;
  margin-bottom: 32px;
}

.hc-tenant-icon {
  width: 150px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--hc-radius-md);
  background: var(--hc-white);
  padding: 4px;
}

/* --------------------------------------------------------------------------
   Header (for pages with logout button in header bar)
   -------------------------------------------------------------------------- */

.hc-header {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--hc-black);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--hc-space-md);
}

.hc-header__link {
  font-size: 1.125rem;
  border: none;
  background: none;
  font-family: 'Spartan-Regular';
  color: white;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 16px;
}

.hc-header__link:hover {
  color: var(--hc-turquoise);
}

.hc-has-header {
  padding-top: 50px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.hc-footer {
  margin-top: 50px;
  height: 200px;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #090909;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .hc-footer {
    margin-top: 100px;
    height: 80px;
    padding: 0 1rem;
    flex-direction: row;
  }
}

.hc-footer__section {
  flex: 1 1 25%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hc-footer__section:nth-child(2) {
  flex: 2 1 50%;
}

.hc-footer__section:first-child {
  color: white;
  font-size: 1.125rem;
}

.hc-footer__section:last-child {
  color: white;
  font-size: 1.125rem;
}

.hc-footer__logo-wrapper {
  background-color: var(--hc-white);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
}

.hc-footer__logo {
  height: 50px;
}

.hc-footer__link {
  color: var(--hc-text-light);
  text-decoration: none;
  font-size: 16px;
}

.hc-footer__link:hover {
  text-decoration: underline;
  color: var(--hc-turquoise);
}

.hc-footer__separator {
  margin: 0 8px;
  color: var(--hc-text-light);
}

/* --------------------------------------------------------------------------
   Content Container (replaces old .content-container)
   -------------------------------------------------------------------------- */

.hc-content {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .hc-content {
    margin: 30px 0 0 0;
  }
}
