/*
========================================
Layout styles
Version 4 (versioned to bust cache)
========================================
*/

/* Keycloak wrapper (avoid styling injected widgets/scripts) */
#kc-page-container {
  display: grid;
  grid-template-rows: 72px 1fr;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
}

#kc-header {
  padding: 24px 0;

  /* Logo */
  &::after {
    background-image: url('../../img/logo-v2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: auto;
    content: '';
    display: block;
    width: 200px;
    height: 55px;
    margin: 0 auto;
  }

  @media (max-width: 480px) {
    padding: 16px 0;

    &::after {
      width: 160px;
      height: 44px;
    }
  }
}

/* Main Content container */
#kc-header + div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1rem 4rem;

  @media (max-width: 768px) {
    padding: 0 0.5rem 4rem;
  }

  /* Page title */
  header {
    max-width: 480px;
    margin: 0 auto 1rem;
    text-align: center;
    width: 100%;
  }
}

#kc-header-wrapper {
  visibility: hidden;
  height: 0px;
  overflow: hidden;
}

#kc-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;

  @media (max-width: 768px) {
    padding: 0 0.5rem;
  }
}

