import styled from "styled-components";

/* styles for input component */
 export const Input = styled.input`
  background-color: transparent;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 10px;
  border: 1px solid ${(props) => (props.hasError ? "#F95454" : "#adb2b2")};
  color: #adb3b3;
  transition: 0.5s;
  outline: none;
  width: 100%;
  
  &:disabled {
    background-color: #c6cccc;
    cursor: not-allowed;
  }
  &:focus {
    border: 1px solid #00c2c2;
  }
  &:active {
    border: 1px solid #00c2c2;
  }
  &::placeholder {
    color: #adb2b2;
  }
`;

export const Label = styled.label`
  font-size: 14px;
  font-weight: 400;
  color: #313333;
  display: block;
  margin-bottom: 12px;
`;

export const ErrorMsg = styled.small`
  font-size: 12px;
  font-weight: 400;
  color: #f95454;
  display: block;
  margin-top: 12px;
`;
