import { css } from 'lit'

export const AUTH_STYLE_SIGN = css`
  :host {
    display: flex;
    background-color: var(--auth-background);
  }

  :host *:focus {
    outline: none;
  }

  :host * {
    box-sizing: border-box;
  }

  ::placeholder {
    color: var(--opacity-light-color);
    font: var(--auth-input-font);
  }
  .wrap {
    display: block;
    width: 450px;
    min-width: 350px;
    margin: 0 auto;
    padding-bottom: 100px;
    text-align: center;
  }
  .auth-brand {
    color: #fff;
  }
  .auth-brand img {
    margin: 15% auto 5px auto;
    width: 100px;
    border: 3px solid var(--theme-white-color);
    border-radius: 25px;
    box-shadow: var(--box-shadow);
  }
  .name {
    display: block;
    font: var(--auth-brand-name);
    text-shadow: var(--auth-brand-name-shadow);
  }
  .auth-brand .welcome-msg {
    font: var(--auth-brand-welcome-msg);
  }
  .auth-form {
    display: grid;
    grid-gap: var(--margin-default);
    grid-template-columns: 1fr 1fr;
  }

  form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: var(--margin-default);
    align-items: center;
  }

  h3 {
    grid-column: 1 / -1;
    margin: 50px 0 0 0;
    font: var(--auth-title-font);
    color: var(--auth-title-color);
    text-transform: uppercase;
  }

  .field {
    grid-column: 1 / -1;
    text-align: left;
  }

  .field mwc-textfield {
    width: 100%;
    --mdc-theme-primary: var(--auth-input-color);
    --mdc-theme-error: #fdd55f;
    --mdc-text-field-fill-color: transparent;
    --mdc-text-field-ink-color: var(--auth-input-color);
    --mdc-text-field-label-ink-color: var(--auth-input-color);
    --mdc-text-field-idle-line-color: var(--auth-input-color);
    --mdc-text-field-hover-line-color: var(--auth-input-color);
    font: var(--auth-input-font);
  }

  mwc-button {
    --mdc-theme-primary: var(--auth-button-background-color);
    --mdc-theme-on-primary: var(--primary-color);
    --mdc-button-horizontal-padding: var(--padding-default);
    --mdc-button-ink-color: var(--primary-color);
    grid-column: 1 / -1;
  }

  .wrap .link {
    text-decoration: none;
    justify-self: flex-start;
    color: var(--auth-title-color);
  }

  .wrap .link > mwc-button {
    --mdc-theme-primary: var(--auth-title-color);
  }

  #locale-area {
    display: flex;
    grid-column: 1 / -1;
    padding: 0 var(--padding-default);
  }

  #locale-area > label {
    display: flex;
    align-items: center;
    color: var(--theme-white-color);
    --mdc-icon-size: 16px;
  }

  #locale-selector {
    font-size: 16px;
    width: 100%;
  }

  #locale-selector {
    --i18n-selector-field-border: none;
    --i18n-selector-field-background-color: none;
    --i18n-selector-field-font-size: 14px;
    --i18n-selector-field-color: var(--theme-white-color);
  }

  .lottie-container {
    width: 100%;
    height: 300px;
    position: absolute;
    left: 0;
    bottom: 0;
    pointer-events: none;
  }
  .lottie-container lottie-player {
    position: absolute;
    bottom: -6%;
    width: 100%;
    height: auto;
  }

  @media (max-width: 450px) {
    .wrap {
      width: 85%;
      min-width: 320px;
    }
    .auth-form {
      grid-template-columns: 1fr;
    }
    .auth-brand img {
      margin: 12% auto 5px auto;
      width: 75px;
    }
    h3 {
      margin: 15px 0 0 0;
    }
    .lottie-container {
      overflow: hidden;
      height: 200px;
      pointer-events: none;
    }
    .lottie-container lottie-player {
      width: 1200px;
      left: -30%;
    }
  }

  @media screen and (min-width: 1400px) {
    .wrap {
      padding-bottom: 150px;
    }
  }
  @media screen and (min-width: 2500px) {
    .wrap {
      padding-bottom: 280px;
    }
  }
`
