/* Cinnamon theme for Dex. Colours, font and button behaviour follow cinnamon-ui-library. */

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url(inter-400.woff2) format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url(inter-800.woff2) format('woff2');
}

.theme-body {
  background-color: #F3F4F6;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.15px;
}

.theme-navbar {
  background-color: #fff;
  height: 56px;
  overflow: hidden;
  padding: 0 16px;
}

.theme-navbar__logo-wrap {
  display: inline-block;
  height: 100%;
  padding: 12px 0;
}

.theme-navbar__logo {
  height: 100%;
  max-height: 32px;
}

.dex-container {
  color: #000;
  margin: 48px auto;
  max-width: 420px;
}

.theme-panel {
  background-color: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 3px;
  padding: 0 12px 4px;
  text-align: left;
}

.theme-heading {
  border-bottom: 1px solid #DFDFDF;
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  margin: 0 -12px;
  padding: 8px 12px;
}

.theme-panel > p {
  line-height: 20px;
  margin: 12px 0;
}

.theme-form-row {
  display: block;
  margin: 12px 0;
}

.theme-form-row > a {
  display: block;
  text-decoration: none;
}

.dex-btn {
  align-items: center;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: none;
  color: #000;
  display: flex;
  font-family: inherit;
  font-size: 14px;
  gap: 10px;
  height: 36px;
  justify-content: center;
  padding: 0 16px;
  position: relative;
  width: 100%;
}

/* The growing underline on hover and the inverted pressed state mirror CButton. */
.dex-btn::after {
  background: transparent;
  bottom: 0;
  content: '';
  height: 3px;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  transition: width 200ms ease-out, background 200ms ease-out;
  width: 0;
}

.dex-btn:hover::after {
  background: #000;
  width: 100%;
}

.dex-btn:active {
  background-color: #000;
  box-shadow: none;
  color: #fff;
  transition: background 300ms ease-out;
}

.dex-btn:active::after {
  width: 0;
}

.dex-btn:focus-visible .dex-btn-text {
  text-decoration: underline;
  text-underline-position: under;
}

.theme-btn-provider {
  justify-content: flex-start;
}

.dex-btn-icon {
  background-color: transparent;
  background-size: contain;
  border-radius: 0;
  flex: 0 0 18px;
  height: 18px;
  margin: 0;
  width: 18px;
}

.dex-btn-icon--microsoft,
.dex-btn-icon--oidc {
  background-color: transparent;
  background-size: contain;
}

/* Every oidc connector here is an Entra ID tenant, so it gets the Microsoft icon too. */
.dex-btn-icon--oidc {
  background-image: url(../static/img/microsoft-icon.svg);
}

.dex-btn-text {
  font-weight: 400;
  line-height: 20px;
  padding: 0;
}

.theme-btn--primary,
.theme-btn--success {
  background-color: #F3F4F6;
}

.theme-btn--primary .dex-btn-text,
.theme-btn--success .dex-btn-text {
  font-weight: 800;
}

.dex-separator {
  border: 0;
  border-top: 1px solid #DFDFDF;
  margin: 12px -12px;
}

.dex-subtle-text,
.dex-list {
  color: #8A8A8A;
  font-size: 12px;
}

.dex-error-box {
  background-color: #F02832;
  border-radius: 3px;
  max-width: none;
  padding: 8px 12px;
}

.theme-form-input {
  border: 1px solid #C4C4C4;
  border-radius: 3px;
  color: #000;
  display: block;
  font: inherit;
  height: 36px;
  padding: 6px 12px;
  width: 100%;
}

.theme-form-input:focus,
.theme-form-input:active {
  border-color: #000;
  outline: none;
}

.theme-form-label {
  font-size: 12px;
  margin: 4px 0;
}

.theme-link-back {
  margin-top: 4px;
}
