/* ==========================================================================
   DGA SSO - Base Styles & Reset
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-text);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-md-size);
  line-height: var(--text-md-line);
  color: var(--color-text-default);
  background-color: var(--color-bg-body);
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Typography Utilities
   -------------------------------------------------------------------------- */

.text-display-sm {
  font-family: var(--font-family-display);
  font-size: var(--display-sm-size);
  line-height: var(--display-sm-line);
  font-weight: var(--font-weight-bold);
}

.text-md-regular {
  font-size: var(--text-md-size);
  line-height: var(--text-md-line);
  font-weight: var(--font-weight-regular);
}

.text-md-medium {
  font-size: var(--text-md-size);
  line-height: var(--text-md-line);
  font-weight: var(--font-weight-medium);
}

.text-sm-regular {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  font-weight: var(--font-weight-regular);
}

.text-sm-semibold {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  font-weight: var(--font-weight-semibold);
}

.text-xs-medium {
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
  font-weight: var(--font-weight-medium);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */

.sso-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.sso-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-desktop);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

/* --------------------------------------------------------------------------
   RTL Support
   -------------------------------------------------------------------------- */

[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .sso-icon-flip {
  transform: scaleX(-1);
}
