/*!
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

@import '../_variables';

md-input-container {
  margin: 5px;
}

md-input-container.sp .md-input {
  border: 2px solid $sp-color-accent;
  border-radius: 3px;
  background: #f6f6f6;
}

md-input-container.sp.md-input-invalid {
  border-radius: 3px;
}

md-input-container.sp.md-input-invalid .md-input {
  border: 2px solid $sp-color-error;
  border-radius: 3px;
  background: white;
}

md-input-container.sp {
  border-radius: 3px;
}

md-input-container.sp.md-input-focused.md-input-invalid {
  background: $sp-color-error;
}

md-input-container.sp.md-input-focused {
  background: $sp-color-accent;
  -webkit-transition: background cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s, -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s;
  transition: background cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s, -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s;
  transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s, background cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s;
  transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s, background cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s, -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s;
}

md-input-container.sp label:not(.md-no-float) {
  //transform: translate3d(0, -28px, 0) scale(1);
}

md-input-container.sp.md-input-focused label:not(.md-no-float), md-input-container.sp.md-input-has-placeholder label:not(.md-no-float), md-input-container.sp.md-input-has-value label:not(.md-no-float) {
  -webkit-transform: translate3d(0, 55px, 0) scale(0.75);
  color:white;
 }

md-input-container.sp label:not(.md-container-ignore).md-required:after {
  color:white;
}

md-input-container.sp.md-input-focused .md-input {
  border-width: 2px;
}

md-input-container.sp label:not(.md-no-float):not(.md-container-ignore), md-input-container.sp .md-placeholder {
  padding-left:10px;
}

label {
  margin-bottom: 0px;
}