@import "compass";
@import "mixins";
$no-auth-width: 300px;

body.no-auth {
  background-image: inline-image("backgrounds/linen-light.png");

  div.container {
    width: 320px;
  }
}

.no-auth-content {
  margin-left: 10px;

  input {
    width: $no-auth-width;
    height: 45px;
    padding: 15px;
  }

  .input {
    input {
      display: inline-block;
    }
    .no-auth-checkbox input {
      display: none;
    }

    &.error {
      .no-auth-checkbox {
        border: 1px solid rgb(185, 74, 72);
      }
    }
  }

  form {
    margin: 0;
    padding: 0;

    .input {
      .help-inline {
        margin-bottom: 4px;
        width: $no-auth-width;

        &.error {
          margin-bottom: 6px;
        }
      }
    }
  }

  div.help-inline {
    margin-bottom: 0px;
    padding-bottom: 0px;
    width: $no-auth-width;
    display: block;
  }
}

@media (min-width: 1200px) {
  body.no-auth div.container { width: 1170px; }
  .no-auth-content { margin-left: 435px; }
}
@include no-auth-media(980px, 1199px, 940px, 320px);
@include no-auth-media(748px, 979px, 724px, 212px);

input:-webkit-autofill {
  @include box-shadow(0 0 0px 1000px white inset);
}

input:-webkit-autofill:focus {
  @include box-shadow(0 0 0px 1000px white inset);
}

.no-auth-logo {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 30px;
}

.no-auth-menu {
  text-align: center;
  width: $no-auth-width;
  margin: 20px 0;
}

.no-auth-message {
  width: $no-auth-width;
}

.no-auth-button {
  width: $no-auth-width;
  background-color: #81D8F1;
  margin-top: 20px;
  height: 45px;
  color: rgba(0, 0, 0, 0.75);
  @include text-shadow-bottom(#fff);
  @include box-shadow(0px 2px 5px rgba(0, 0, 0, 0.2), 0px -1px 0px rgba(255, 255, 255, 0.3) inset);
  padding: 0px;
  @include border-radius(4px);
  border: 0px solid;
  @include background-image(linear-gradient(top, transparent, rgba(0, 0, 0, 0.35)));
  cursor: pointer;
  @include box-shadow(rgba(0, 0, 0, 0.2) 0px 2px 5px 0px, rgba(255, 255, 255, 0.3) 0px -1px 0px 0px inset);
  font-weight: bold;
}

.no-auth-button:hover, input[type="submit"]:hover {
  @include background-image(linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)));
}

.no-auth-checkbox {
  display: inline-block;
  width: $no-auth-width;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 8px;
  padding-bottom: 7px;
  margin: auto;
  background: rgba(0, 0, 0, 0.3);
  color: #aaaaaa;
  font-size: 12px;
  border: 1px solid #555;
  @include border-radius(0 0 4px 4px);
  @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));

  label {
    font-size: 12.5px;
    line-height: 18px;
    margin-bottom: 0px;
  }

  & + .help-inline {
    vertical-align: baseline;
  }
}

%phone0 {
  width: 68px;
  margin-top: -3px;
  margin-bottom: 0px;
}

#id_phone_0 {
  @extend %phone0;
}

#id_phone2_0 {
  @extend %phone0;
}

#id_fax_0 {
  @extend %phone0;
}
#id_alerting_phone_0 {
  @extend %phone0;
}

%phone1 {
  overflow: hidden;
  width: 70%;
}

#id_phone_1 {
  @extend %phone1;
}
#id_phone2_1 {
  @extend %phone1;
}
#id_fax_1 {
  @extend %phone1;
}
#id_alerting_phone_1 {
  @extend %phone1;
}

%phone0_multiwidget {
  margin-top: 0px;
  margin-bottom: 0px;
  height: 45px;
  padding: 13px 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #dddddd;
  font-size: 12.5px;
  border: 1px solid #555;
  border-right: none;
  @include border-radius(0 0 4px 4px);
  @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));
}

%phone0_multiwidget_option {
  color: #000;
}

%phone1_multiwidget {
  width: -68 + $no-auth-width;
}

div.multiwidget {
  display: inline-block;

  #id_phone_0 {
    @extend %phone0_multiwidget;
    option {
      @extend %phone0_multiwidget_option;
    }
  }
  #id_phone2_0 {
    @extend %phone0_multiwidget;
    option {
      @extend %phone0_multiwidget_option;
    }
  }
  #id_fax_0 {
    @extend %phone0_multiwidget;
    option {
      @extend %phone0_multiwidget_option;
    }
  }
  #id_alerting_phone_0 {
    @extend %phone0_multiwidget;
    option {
      @extend %phone0_multiwidget_option;
    }
  }

  #id_phone_1 {
    @extend %phone1_multiwidget;
  }
  #id_phone2_1 {
    @extend %phone1_multiwidget;
  }
  #id_fax_1 {
    @extend %phone1_multiwidget;
  }
  #id_alerting_phone_1 {
    @extend %phone1_multiwidget;
  }
}

%phone1_narrow {
  width: 97px;
}

#id_phone_1.narrow {
  @extend %phone1_narrow;
}

#id_phone2_1.narrow {
  @extend %phone1_narrow;
}

#id_fax_1.narrow {
  @extend %phone1_narrow;
}
#id_alerting_phone_1.narrow {
  @extend %phone1_narrow;
}

i.flag {
  display: inline-block;
  background-image: inline-image("flags.png");
  background-repeat: no-repeat;
  height: 11px;
  width: 16px;
  margin-left: 2px;
  margin-right: 2px;
  margin-top: 4px;
  vertical-align: top;

  &.sk {
    background-position: 0px 0px;
  }

  &.en {
    background-position: 0px -11px;
  }
}

.dropdown.inline {
  display: inline;
}

.lang-nav.dropdown-menu {
  top: 26px;
  left: -102px;

  &.dark li a {
    font-weight: bold;
    font-size: 11px;
  }
}

%dropdown_a {
  color: white;
  background: none;
  outline: 2px solid #81D8F1;
}

%dropdown_active_a {
  font-weight: bold;
  background: none;
  outline: 1px dotted #81D8F1;
}

.dropdown-menu.dark {
  background-color: #3a3a40;
  border: 1px solid #2e2e33;
  @include text-shadow(rgba(0, 0, 0, 0.5) 0px 1px 1px);

  li {
    text-align: left;

    a {
      color: white;
      font-size: 11.5px;
      padding-left: 10px;
    }
    & > a:hover {
      @extend %dropdown_a;
    }
    & > a:focus {
      @extend %dropdown_a;
    }
    .active {
      & > a {
        @extend %dropdown_active_a;
      }
      & > a:hover {
        @extend %dropdown_active_a;
      }
    }
  }
}
