// --------------------------------
// Registration form styles
// --------------------------------

@reg-form-width: 480px;
@reg-form-height: 375px;

.reg-form-container {
  width: 100%;
  max-width: @reg-form-width;
  margin: 0 auto;
  margin-top: 10vh;
  transition: margin-top 0.5s ease-in-out;

  a.btn-primary {
    color: white;
  }

  @media (max-height: 685px) {
    margin-top: 5vh;
  }

  @media (max-height: 602px) {
    margin-top: 0;
  }
}

@media (min-width: @screen-md-min) {
  .reg-form-container {
    width: @reg-form-width;
  }
}

ul.form-step-progress li {
  width: 50%;
  &:before {
    width: 80%;
  }
}

.sign-in-container {
  margin-top: 2vh;
  margin-bottom: 2vh;

  @media (max-height: 685px) {
    margin-top: 5vh;
  }

  @media (max-height: 602px) {
    margin-top: 0;
  }
}

#div_id_eula_confirmed {
  text-align: left;
  label {
    margin-left: 20px;
  }
  input.checkbox {
    /* Double-sized Checkboxes */
    -ms-transform: scale(1.8); /* IE */
    -moz-transform: scale(1.8); /* FF */
    -webkit-transform: scale(1.8); /* Safari and Chrome */
    -o-transform: scale(1.8); /* Opera */

    margin-left: -22px;
    height: 25px;
  }
}

.fake-autocomplete-fields {
  display: none;
}

span.validationMessage {
  text-align: left;
  display: block;
  margin: 0.5em;
}

p.validation-message-block {
  margin: 0.5em;
  text-align: left;
  margin-top: -0.6em;
  margin-bottom: 1.1em;
}

p.sso-message-block {
  margin: 0.5em;
  margin-bottom: 1.55em;
  text-align: left;
}

.submit-errors {
  p,
  ul {
    text-align: left;
  }
}

.commcare-icon {
  font-size: 3em;
}

.submit-info,
.server-errors,
.submit-success {
  h2 {
    margin: 0.5rem 0 1rem;
  }
}

.server-errors,
.submit-success {
  text-align: left;
}

.initial-padding {
  padding-top: 20px;
}

.intl-tel-input {
  width: 100%;

  .selected-flag {
    color: @cc-text;
    .selected-dial-code {
      padding-left: 5px !important;
    }
  }
}

.intl-tel-input .country-list .country {
  color: @cc-text;
}

.radio-select {
  box-sizing: border-box;
  border-radius: @input-border-radius-large;
  border: 2px solid #cccccc;
  font-size: @font-size-large;

  &_options {
    border-radius: @input-border-radius-large;
  }
  &_expand {
    &::after {
      line-height: @input-height-large;
    }
  }
  &_items {
    padding-top: @input-height-large;
  }
  &_label {
    line-height: @input-height-large - 2px;
    padding-left: @padding-large-horizontal;
  }
  &_expand:checked {
    + .radio-select_closeLabel {
      + .radio-select_options {
        margin-top: @input-height-large - 2px;
        .radio-select_label {
          height: @input-height-base;
          line-height: @input-height-base;
        }
        .radio-select_label:last-child {
          &:hover {
            border-bottom-left-radius: @input-border-radius-large;
            border-bottom-right-radius: @input-border-radius-large;
          }
        }
      }
    }
  }
  &_input:checked + .radio-select_label {
    height: @input-height-base;
  }
}

.radio-select,
.radio-select_expand,
.radio-select_expandLabel,
.radio-select_label-placeholder {
  height: @input-height-large;
  line-height: @input-height-large - 2px;
}

.sign-up-bubble {
  margin: 10px 0;
}

._make-btn-primary-choice (@color) {
  .btn-primary {
    background-color: @color;
    border-color: @color;
  }

  &:focus {
    .btn-primary {
      background-color: darken(@color, 10%);
      border-color: darken(@color, 25%);
    }
  }

  &:hover {
    .btn-primary {
      background-color: darken(@color, 10%);
      border-color: darken(@color, 12%);
    }
  }
}

.reg-form-container .other-options {
  h4 {
    text-align: center;
  }
}

.server-location-buttons {
  display: flex;
  justify-content: space-evenly;
}
