
.mg-fancy-form-field {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  border-radius: 50px !important;
}

.fancy-login-form-container label {
  padding: 3px 12px 12px 19px;
  display: inline-block;
}

.fancy-login-form-container .mg-fancy-form-submit-button {
  background-color: #4CAF50;
  width: 100%;
  color: white;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  float: right;
  margin-top: 25px;
  border-radius: 50px !important;
}
.mg-fancy-login-response .mg-fancy-login-fail{
  color: red;
  width: 100%;
  font-weight: bold;
  padding: 3px 12px 12px 19px;
}
.mg-fancy-login-response .mg-fancy-login-success{
  color: #4CAF50;
  width: 100%;
  font-weight: bold;
  padding: 3px 12px 12px 19px;
}
.mg-fancy-form-heading{
  text-align: center;
  margin: 0 31px 12px 0;
  font-weight: bold;
}
.fancy-login-form-container .mg-fancy-form-submit-button:hover {
  background-color: #45a049;
}
.fancy-login-form-container {
    max-width: 450px !important;
    width: 100%;
}
.mg-fancy-form-row{
  width: 90%;
}

.mg-fancy-form-col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}

.mg-fancy-form-col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}
.mg-fancy-form-col-100 {
  float: left;
  width: 100%;
  margin-top: 6px;
}

/* Clear floats after the columns */
.mg-fancy-form-row:after {
  content: "";
  display: table;
  clear: both;
}
.mg-fancy-form-field-icon {
  float: right;
  margin-top: -45px;
  margin-right: 10px;
  position: relative;
  z-index: 2;
}
body .mg-fancy-form-lds-ring{
  display: none;
}

/* loader css */
.mg-fancy-form-lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.mg-fancy-form-lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: mg-fancy-form-lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.mg-fancy-form-lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.mg-fancy-form-lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.mg-fancy-form-lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
form.fancy-login-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 5px;
    padding-top: 15px;
    padding-bottom: 35px;
}

form.fancy-login-form .mg-fancy-form-row {
    width: 100%;
    position: relative;
}

form.fancy-login-form .mg-fancy-form-row label {
    margin: 10px 0 0 0;
    padding: 0 0 0 13px;
    font-size: 14px;
}

form.fancy-login-form .mg-fancy-form-row input {
    border: 2px solid #f1f1f1;
    margin: 0;
    padding: 12px 20px;
    font-size: 18px;
    line-height: normal;
}

form.fancy-login-form .mg-fancy-form-row input:focus {
    border-color: #4caf50;
    outline: 0;
}

form.fancy-login-form .mg-fancy-form-row span.mg-fancy-eye {
    margin: 0;
    position: absolute;
    right: 15px;
    font-size: 14px;
    top: 55px;
}

form.fancy-login-form .mg-fancy-form-row span.mg-fancy-login-fail {
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    padding: 0;
    width: 100%;
    float: left;
    margin: 10px 0 0 0;
}
form.fancy-login-form .mg-fancy-form-row button.mg-fancy-form-submit-button {
  outline: 0;
}
form.fancy-login-form .mg-fancy-form-row button.mg-fancy-form-submit-button .mg-fancy-form-lds-ring {
    position: absolute;
    top: 38px;
    right: calc(50% - 52px);
    width: 22px !important;
    height: 22px !important;
}

form.fancy-login-form .mg-fancy-form-row button.mg-fancy-form-submit-button .mg-fancy-form-lds-ring div {
    width: 22px;
    height: 22px;
    border-width: 3px;
    margin: 0;
}
@keyframes mg-fancy-form-lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .mg-fancy-form-col-25, .mg-fancy-form-col-75 {
    width: 100%;
    margin-top: 0;
  }
  .fancy-login-form-container .mg-fancy-form-submit-button{
    width: 100%;
    margin-top: 25px;
  }
}
