@import '../../styles/variables';

.container {
  display: grid;
  width: 100%;
  height: 100%;

  .whiteBox {
    display: grid;
    background-color: white;
    width: 400px;
    margin: auto;
    padding: 35px;
    grid-row-gap: 10px;

    .logo {
      height: 100px;

      img {
        margin: auto;
        display: block;
        height: 100%;
      }
    }

    .header {
      text-align: center;
      font-size: 28px;
      color: var(--login-header-color, $login-header-color);
    }

    .authTitle {
      padding: 10px;
      padding-bottom: 20px;
      padding-top: 0px;
      font-size: 18px;
      font-weight: bold;
      text-align: center;
      color: var(--login-auth-title-color, $login-auth-title-color);
    }

    .tile {
      margin: auto;
      display: grid;
      grid-template-columns: 1fr 6fr;
      place-items: center start;
      color: white;
      cursor: pointer;
      height: 54px;
      border: solid 1px var(--login-tile-border-color, $login-tile-border-color);
      transition: border 0.3s, box-shadow 0.3s;

      &.ax {
        color: var(--login-tile-color, $login-tile-color);
      }

      &.azure {
        color: var(--login-tile-color, $login-tile-color);
      }

      &.google {
        color: var(--login-tile-color, $login-tile-color);
      }

      &.axinom {
        color: var(--login-tile-color, $login-tile-color);
      }

      .image {
        width: 50px;
        padding: 10px;
        display: grid;
        place-items: center;
        height: 54px;

        img {
          display: block;
          width: 100%;
        }
      }

      .text {
        margin-left: 10px;
      }
    }

    .tile:hover {
      border: 1px solid var(--login-tile-hover-border-color, $login-tile-hover-border-color);
      box-shadow: 0 0 2px var(--login-tile-hover-shadow-color, $login-tile-hover-shadow-color);
    }
  }

  .dialogBox {
    width: 100%;
    max-width: 420px;
    min-width: 320px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px 30px 10px 30px;
  }

  .mosaicLogo {
    margin: 0px 70px 15px 70px;
  }

  .content {
    padding: 0px 0px 15px;
  }

  .tabs {
    display: flex;
    background-color: var(--login-tabs-bg-color, $login-tabs-bg-color);
    color: var(--login-tabs-color, $login-tabs-color);
    font-weight: bold;
    font-size: 14px;
  }

  .tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
  }

  .tab.active {
    background-color: var(--login-tab-active-bg-color, $login-tab-active-bg-color);
    border-top: 1px solid var(--login-tab-active-border-color, $login-tab-active-border-color);
    color: var(--login-tab-active-color, $login-tab-active-color);
  }

  .tab:hover {
    background-color: var(--login-tab-hover-bg-color, $login-tab-hover-bg-color);
    color: #ffffff;
  }

  .tab.active:hover {
    background-color: var(--login-tab-active-bg-color, $login-tab-active-bg-color);
    border-top: 1px solid var(--login-tab-active-border-color, $login-tab-active-border-color);
    color: var(--login-tab-active-color, $login-tab-active-color);
  }

  .tabContent {
    padding: 10px 0 0 0;
  }

  .tabContent > div {
    display: none;
  }

  .tabContent > div.active {
    display: block;
  }

  .inputGroup {
    margin-bottom: 10px;
  }

  .inputGroup input {
    width: 100%;
    padding: 15px 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
  }

  .inputGroup input:hover,
  .inputGroup input:focus {
    border: 1px solid var(--login-input-hover-border-color, $login-input-hover-border-color);
    box-shadow: 0 0 2px var(--login-input-hover-shadow-color, $login-input-hover-shadow-color);
  }

  .inputGroupError {
    margin-bottom: 10px;
  }

  .inputGroupError input {
    width: 100%;
    padding: 15px 15px;
    box-sizing: border-box;
    border: 1px solid var(--login-input-error-border-color, $login-input-error-border-color);
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
  }

  .inputGroupError input:hover,
  .input-group input:focus {
    border: 1px solid var(--login-input-error-border-color, $login-input-error-border-color);
    box-shadow: 0 0 2px var(--login-input-error-shadow-color, $login-input-error-shadow-color);
  }

  .errorMessage {
    font-size: 12px;
    color: var(--login-error-message-color, $login-error-message-color);
    margin: 5px 0 10px 0;
  }

  form {
    .button {
      padding: 15px;
      background-color: var(--login-button-bg-color, $login-button-bg-color);
      color: white;
      border: none;
      cursor: pointer;
      text-align: left;
      width: 100%;
    }

    .buttonDisabled {
      padding: 15px;
      background-color: #ccc;
      color: white;
      border: none;
      text-align: left;
      width: 100%;
    }
  }

  .button:hover {
    background-color: var(--login-button-hover-bg-color, $login-button-hover-bg-color);
  }

  .forgotPassword {
    text-align: right;
    padding-top: 10px;
  }

  .forgotPassword a {
    font-size: 12px;
    color: var(--login-link-color, $login-link-color);
    cursor: pointer;
  }

  .separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
  }

  .separator::before,
  .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed var(--login-separator-border-color, $login-separator-border-color);
  }

  .separator:not(:empty)::before {
    margin-right: 10px;
  }

  .separator:not(:empty)::after {
    margin-left: 10px;
  }

  .separator span {
    font-size: 12px;
    color: var(--login-separator-text-color, $login-separator-text-color);
  }

  .buttonIdp {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    background-color: #ffffff;
    color: var(--login-button-idp-color, $login-button-idp-color);
    border: 1px solid var(--login-button-idp-border-color, $login-button-idp-border-color);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
    transition: border 0.3s, box-shadow 0.3s;
  }

  .buttonIdp:last-child {
    margin-bottom: 0px;
  }

  .buttonIdp img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }

  .buttonIdp:hover {
    border: 1px solid var(--login-button-idp-hover-border-color, $login-button-idp-hover-border-color);
    box-shadow: 0 0 2px var(--login-button-idp-hover-shadow-color, $login-button-idp-hover-shadow-color);
  }

  p {
    color: var(--login-text-color, $login-text-color);
    font-size: 14px;
  }

  .hint {
    padding: 5px 15px;
    color: var(--login-text-color, $login-text-color);
    font-size: 14px;
    text-align: center;
  }

  .info {
    color: var(--login-text-color, $login-text-color);
    font-size: 14px;
    text-align: left;
  }
}
