@import "~@angular/material/theming";

@include mat-core();

$nli-blue: (
  50: #008ecc,
  100: #008ecc,
  200: #008ecc,
  300: #007dcc,
  400: #007dcc,
  500: #008dcc,
  600: #008ecc,
  700: #008ecc,
  800: #008ecc,
  900: #008ecc,
  A100: #c6cbff,
  A200: #939dff,
  A400: #606eff,
  A700: #008ecc,
  contrast: (
    50: #000000,
    100: #000000,
    200: #000000,
    300: #000000,
    400: #ffffff,
    500: #ffffff,
    600: #ffffff,
    700: #ffffff,
    800: #ffffff,
    900: #ffffff,
    A100: #000000,
    A200: #000000,
    A400: #ffffff,
    A700: #ffffff
  )
);

$nli-orange: (
  50: #ff9900,
  100: #ffe0b3,
  200: #ffcc80,
  300: #ffb84d,
  400: #ffa826,
  500: #ff9900,
  600: #ff9900,
  700: #ff9900,
  800: #ff9900,
  900: #ff9900,
  A100: #ffffff,
  A200: #fff7f2,
  A400: #ffd6bf,
  A700: #ffc6a6,
  contrast: (
    50: #000000,
    100: #000000,
    200: #000000,
    300: #000000,
    400: #ffffff,
    500: #ffffff,
    600: #ffffff,
    700: #ffffff,
    800: #ffffff,
    900: #ffffff,
    A100: #000000,
    A200: #000000,
    A400: #000000,
    A700: #000000
  )
);

$nli-red: (
  50: #f9e0e0,
  100: #f0b3b3,
  200: #e68080,
  300: #db4d4d,
  400: #d42626,
  500: #cc0000,
  600: #c70000,
  700: #c00000,
  800: #b90000,
  900: #ad0000,
  A100: #ffd7d7,
  A200: #ffa4a4,
  A400: #ff7171,
  A700: #ff5858,
  contrast: (
    50: #000000,
    100: #000000,
    200: #000000,
    300: #ffffff,
    400: #ffffff,
    500: #ffffff,
    600: #ffffff,
    700: #ffffff,
    800: #ffffff,
    900: #ffffff,
    A100: #000000,
    A200: #000000,
    A400: #000000,
    A700: #000000
  )
);
$nli-primary: mat-palette($nli-orange);
$nli-accent: mat-palette($nli-blue);
$nli-warn: mat-palette($nli-red);

$app-theme: mat-light-theme($nli-primary, $nli-accent, $nli-warn);

@include angular-material-theme($app-theme);

$primary-color: map-get($app-theme, primary);
$accent-color: map-get($app-theme, accent);
$warn-color: map-get($app-theme, warn);

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* IE10+ CSS styles go here */
  .mat-header-row, .mat-row {
    min-height: 0;
    height: 48px;
  }
  .mat-header-row, .mat-row {
    -ms-flex-align: stretch !important;
  }
  .grid-row {
    -ms-flex-align: stretch !important;
    align-items: center;
    &:after{
      content:'';
      min-height:inherit;
      font-size:0;
    }
  }
}

.nli-primary {
  color: mat-color($primary-color) !important;
}
.nli-accent {
  color: mat-color($accent-color) !important;
}
.nli-warn {
  color: mat-color($warn-color) !important;
}
.nli-primary-bg {
  background-color: mat-color($primary-color) !important;
}
.nli-accent-bg {
  background-color: mat-color($accent-color) !important;
}
.nli-warn-bg {
  background-color: mat-color($warn-color) !important;
}
.nli-primary-border {
  border-color: mat-color($primary-color) !important;
  border-top-color: mat-color($primary-color) !important;
  border-bottom-color: mat-color($primary-color) !important;
  border-left-color: mat-color($primary-color) !important;
  border-right-color: mat-color($primary-color) !important;
}
.nli-accent-border {
  border-color: mat-color($accent-color) !important;
  border-top-color: mat-color($accent-color) !important;
  border-bottom-color: mat-color($accent-color) !important;
  border-left-color: mat-color($accent-color) !important;
  border-right-color: mat-color($accent-color) !important;
}
.nli-warn-border {
  border-color: mat-color($warn-color) !important;
  border-top-color: mat-color($warn-color) !important;
  border-bottom-color: mat-color($warn-color) !important;
  border-left-color: mat-color($warn-color) !important;
  border-right-color: mat-color($warn-color) !important;
}

.errorMsg {
  color: mat-color($warn-color);
}

.has-error {
  color: mat-color($warn-color);
  border-color: mat-color($warn-color);
}

.margin-bottom-10 {
  margin-bottom: 10px;
}

.icon-size-40 {
  font-size: 40px !important;
}

.input-full-width {
  width: 100%;
}

.icon-size-60 {
  width: 60px !important;
  height: 60px !important;
  font-size: 60px !important;
}

.bg-primary {
  background: mat-color($primary-color);
}

.bg-accent {
  background: mat-color($accent-color);
}

.upperCase {
  text-transform: uppercase;
}

.auth-header {
  width: 100%;
  height: 20rem;
  position: absolute;
}

.auth-box {
  position: relative;
  margin: auto;
  top: 10rem;
  left: 0;
  z-index: 200;
  right: 0;
  width: 25rem;
  background: #fff;
  margin-bottom: 100px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.19);
  border-radius: 2px;
}

.copyright {
  width: 30rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 13rem;
  color: rgba(0, 0, 0, 0.376);
  font-size: 14px;
}

.copyright span {
  display: inline-block;
  line-height: 32px;
}

.auth-logo {
  width: 70px;
  height: auto;
  position: relative;
  margin: 50px auto;
  display: block;
}

.auth-button-wrapper {
  margin: 10px auto 20px auto;
  width: 100%;
  text-align: right;
  align-items: right;
}

.auth-select-container {
  width: 100%;
}

.auth-welcome-container {
  text-align: center;
  width: 100%;
  margin-bottom: 50px;
}

.auth-button {
  text-transform: uppercase;
}

.auth-loading-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
}

.auth-form-container {
  margin: 20px;
}

.auth-input {
  min-height: 64px;
  background-color: white;
  input {
    min-height: 28px;
  }
  mat-select {
    margin-top: 4px;
    min-height: 24px;
  }

}
