@import "_variables.css";
@import "_keycloak.css";
@import "_font.css";

.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
  color: var(--clg-orange);
}

::selection {
  color: var(--clg-white);
  background: var(--clg-orange);
  text-shadow: none;
}

::-moz-selection {
  color: var(--clg-white);
  background: var(--clg-orange);
  text-shadow: none;
}

body {
  font-family: Roboto-Light, "Helvetica Neue", sans-serif;
  color: var(--clg-grey-01);
}

.mt-1 {
  margin-top: 1em;
}

.mt-2 {
  margin-top: 2em;
}

.clg-link {
  font-family: Roboto-regular;
  text-align: center;
  margin-bottom: 1rem;
}

.clg-link a {
  color: var(--clg-orange);
}

.clg-link a:hover {
  color: var(--clg-orange-dark);
}

.clg-password-icon {
  background: transparent;
  margin-left: 5px;
}

.clg-password-icon img {
  margin-bottom: -5px;
}

.img-color-orange {
  filter: invert(76%) sepia(40%) saturate(3618%) hue-rotate(334deg) brightness(102%) contrast(101%);
}

.img-color-grey {
  filter: invert(24%) sepia(12%) saturate(738%) hue-rotate(177deg) brightness(92%) contrast(90%);
}

.full-page {
  display: flex;
  height: 100%;
}

.page-wrapper {
  display: flex;
  overflow-x: hidden;
  margin: 0 auto;
  height: auto;
  flex-direction: column;
  max-width: 400px;
  min-width: 320px;
  width: 100%;
}

.page-wrapper > * {
  display: block;
  flex: 0 0 auto;
}

.page-wrapper > .content-wrapper {
  flex: 0 1 100%;

  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (min-width: 768px) and (min-device-width: 768px) {
  .page-wrapper {
    margin: 0;
    overflow-y: auto;
  }
}

/*
######################### login page ############
 */

.start-image {
  width: 100%;
  background-image: url("../img/carlog-street.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: none;
}

@media only screen and (min-width: 768px) and (min-device-width: 768px) {
  .start-image {
    display: block;
  }

  .clg-footer {
    max-width: 400px;
  }

  .clg-button {
    width: 135px;
  }
}

@media only screen and (max-width: 767px) and (max-device-width: 767px) {
  .clg-button {
    width: 135px !important;
  }
}

.clg-button-margin {
  margin-top: 70pt !important;
}

.clg-brands-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.clg-brand-list-item {
  cursor: pointer;
  height: 32px;
  width: 32px;
}

.clg-brand-list-item img {
  height: 32px;
  width: 32px;
  position: initial;
  left: -25%;
}

.clg-button-link {
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.header-content {
  margin-top: 2rem;
  padding: 1rem 0;
}

.header-content .header-logo {
  width: 140px;
  margin: auto;
}

.header-content .header-logo img {
  width: 100%;
  position: initial;
  transform: scale(1.5);
}

.header-text {
  color: var(--clg-grey-01);
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: lighter;
  letter-spacing: 2px;
  line-height: 18px;
  margin-right: 20px;
  margin-left: 20px;
  font-size: 12px;
}

.header-text-sub {
  font-size: 20px;
  font-weight: lighter;
}

.header-text-claim {
  font-size: 20px;
  font-weight: lighter;
}

.header-text-sub-text {
  font-family: Roboto-bold;
  font-size: 15px;
  font-weight: bold;
  margin-top: 10px;
}

.header-text-reset {
  font-size: 20px;
  font-weight: lighter;
}

.header-text-reset-sub {
  font-size: 20px;
  font-weight: bolder;
  margin-top: 20px;
}

/* footer */
.clg-footer {
  width: 100%;
  height: auto;
  padding: 1rem var(--page-padding);
  flex: 0 0 auto;
  bottom: 0;
  width: auto;
  margin-left: 0.625rem;
}

::-webkit-scrollbar {
  display: none;
}

.clg-footer-inner {
  display: flex;
  justify-content: space-between;
}

.clg-footer-link-list {
  display: inline-flex;
  margin: auto;
  padding-inline-start: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin: 5px;
}

.clg-footer-link-item {
  list-style-type: none;
  font-size: 12px;
}

.clg-spacer {
  margin: 0 5px;
}

.clg-error-div {
  padding: 2rem;
  text-align: center;
  background-color: rgba(255, 153, 21, 0.15);
  border: 1px solid var(--clg-orange);
  border-radius: 5px;
  color: var(--clg-orange);
  margin-bottom: 15px;
}

.clg-error-div > * {
  margin: 10px 0;
}

.clg-error-div .clg-error-header {
  font-weight: bolder;
}

.clg-error-field {
  display: block;
  margin-top: 5px;
  color: var(--clg-orange);
  font-size: 12px;
  text-align: left;
}

.clg-footer-link-item a {
  color: var(--clg-grey-01);
  text-decoration: none;
}

.clg-footer-link-item a:hover {
  color: var(--clg-orange);
}

button,
input[type="submit"],
input[type="reset"] {
  border: none;
  padding: 0;
  cursor: pointer;
  outline: inherit;
}

.clg-button-group {
  display: flex;
  max-width: 100%;
  margin-bottom: 15px;
}

.clg-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 160px;
  border-radius: 4px;
  margin: 20px auto;
}

.clg-button-big {
  width: 80% !important;
}

.clg-consent-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clg-button .mdc-button {
  width: 100%;
  height: 100%;
  transition: unset;
  --mdc-theme-primary: var(--clg-white);
  color: var(--clg-grey-01);
  box-shadow: 0 0 0 1px var(--button-accent-color) inset;
}

.clg-info-text-center {
  text-align: center;
}

.mdc-text-field {
  padding-left: 0;
}

.mdc-text-field--filled {
  height: 50px;
}

.required_field:after {
  content: " *";
}

.mdc-text-field--filled .mdc-floating-label {
  left: 0;
}

.clg-button-primary {
  --mdc-theme-primary: var(--clg-orange);
}

.clg-button-secondary {
  --mdc-theme-primary: var(--clg-white);
  border-color: var(--clg-grey-01);
}

.clg-button-primary .mdc-button {
  color: var(--clg-orange);
  border-color: var(--clg-orange);
  box-shadow: 0 0 0 1px var(--clg-orange);
}

.clg-button-secondary .mdc-button {
  color: var(--clg-grey-01);
  border-color: var(--clg-grey-01);
  box-shadow: 0 0 0 1px var(--clg-grey-01);
}

.mdc-button mdc-button--raised:hover {
  border: black solid 1px;
}

.clg-button-primary .mdc-button:hover {
  --mdc-theme-primary: var(--clg-orange);
}

.clg-button-secondary .mdc-button:hover {
  --mdc-theme-primary: var(--clg-orange);
  color: var(--clg-white);
}

.mdc-button--raised:disabled {
  color: var(--clg-grey-04);
  box-shadow: 0 0 0 1px var(--clg-grey-01);
}

.password-msg-container {
  height: 40px;
}

.password-msg {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  text-align: left;
  margin-bottom: 12px;
}

.display-none {
  display: none;
}

.clg-button .mdc-button:hover {
  box-shadow: 0 0 0 1px var(--clg-grey-01);
  color: var(--clg-white);
  --mdc-theme-primary: var(--clg-orange);
}

.clg-form-content .mdc-text-field--filled .mdc-floating-label {
  left: 0;
}

.clg-form-content .mdc-text-field--filled .mdc-floating-label--float-above {
  transform: translateY(-170%) scale(0.75);
}

.clg-form-content .mdc-text-field .mdc-floating-label {
  top: 75%;
}

.clg-form-content .mdc-checkbox .mdc-checkbox__native-control {
  top: calc((45px - 31px) / 2);
  right: calc((40px - 26px) / 2);
  left: calc((40px - 26px) / 2);
}

.clg-form-content .mdc-checkbox {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.clg-form-content .mdc-checkbox__background {
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.checkbox_size {
  width: 30px;
  height: 30px;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.justify-center {
  justify-content: center;
}

.w-100 {
  width: 100%;
}

.w-100 label {
  width: 100%;
}

.box-shadow {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  min-height: 200px;
  box-sizing: border-box;
  padding-bottom: 2em;
}

#email-container,
#pw-container {
  margin-bottom: 1em;
}

.container {
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 1em;
}

.right {
  float: right;
  margin-right: 0px;
  text-align: right;
}

.left {
  float: left;
}

.security-header {
  padding: 12px;
  background-color: var(--clg-grey-01);
  color: var(--clg-white);
  text-align: center;
  font-size: 12px;
}

.security-header p {
  margin-top: 5px;
}

.security-header svg g path {
  stroke-width: 5px;
  fill: var(--clg-orange);
}

.filter-orange {
  filter: invert(100%) sepia(100%) saturate(2%) hue-rotate(29deg) brightness(106%) contrast(101%);
}

/* slider */
.slideunlock-wrapper {
  position: relative;
  max-width: 280px;
  margin: 2em auto 2em auto;
}

.slideunlock-slider {
  height: 28px;
  background-color: var(--clg-grey-06);
  border: 1px solid var(--clg-grey-05);
  border-radius: 3px;
  padding: 0 19px;
  margin-bottom: 26px;
}

.slideunlock-label {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  z-index: 999;
  cursor: pointer;
  width: 40px;
  background-color: var(--clg-orange);
  border-radius: 3px;
  background-position: center;
}

.slideunlock-label-tip {
  z-index: 9;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  color: var(--clg-grey-01);
  font-size: 13px;
  font-weight: 700;
  width: 100%;
}

.arrow-right {
  height: 15px;
  width: 15px;
  position: absolute;
  top: 7px;
  right: 12px;
  bottom: 7px;
  left: 12px;
}

.slideunlock-slider svg g path {
  stroke-width: 5px;
  fill: var(--clg-white);
}

/* scrollbar */
/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--clg-orange);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--clg-orange);
}

input::-ms-clear,
input::-ms-reveal {
  display: none;
}

.vehicle-brand {
  filter: brightness(0) saturate(100%) invert(46%) sepia(28%) saturate(205%) hue-rotate(172deg) brightness(88%)
    contrast(86%);
}
