/*
 * NOTE: A maior parte dos estilos foram copiados de :
 * https://material-components.github.io/material-components-web-catalog
 *
 */

html,
body {
  font-family: 'Roboto', 'Muli', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  background-color: #2d323d;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../img/login-bg.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - 64px);
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
}

.totP-page{
  justify-content: flex-start;
}

/* body::before {
  content: ' ';
  background-image: url('https://www.alterdata.com.br/images/fixo/slide/xsobre.jpg.pagespeed.ic.X-bN7x5I1S.webp');
  background-size: cover;
  filter: blur(8px) brightness(0.8);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
} */

a,
a:visited {
  font-size: 14px;
  font-weight: 600;
  color: #039be5;
  text-decoration: none;
}
a:hover,
a:visited:hover {
  text-decoration: underline;
}

/*************
 *   CARD   *
 *************/

.mt-card {
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  position: relative;
  padding: 16px;
  border-radius: 4px;
  background: #fff;
  color: rgba(0, 0, 0, 0.87);
  font-family: Roboto, 'Open Sans';
}

/*************
 *   ICONS   *
 *************/

[class^='mt-icon-'],
[class*=' mt-icon-'] {
  font-size: 16px;
}

.mt-field [class^='mt-icon-'],
.mt-field [class*=' mt-icon-'] {
  font-size: 24px;
}

/**************
 * FORM FIELD *
 **************/

.mt-field {
  display: inline-flex;
  position: relative;
  margin-bottom: 32px;
  border: none;
  overflow: visible;
  text-align: left;
  width: 100%;
  min-height: 55px;
}

.mt-field input[type='text'],
.mt-field input[type='password'] {
  display: flex;
  flex: 1; 
  padding: 12px 16px 14px;
  font-size: 1rem;
  line-height: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.00937em;
  width: 100%;
  outline: none;
  border: 1px solid;
  border-radius: 4px;
  border-color: rgba(0, 0, 0, 0.24);
  min-height: 28px; 
  transition: border 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.mt-field input[type='text'] ~ .mt-outline,
.mt-field input[type='password'] ~ .mt-outline {
  position: absolute;
  display: inline-block;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(0, 0, 0, 0.87);
  border-radius: 4px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: 0;
}

.mt-field input[type='text']:focus ~ .mt-outline,
.mt-field input[type='password']:focus ~ .mt-outline {
  opacity: 1;
}

.mt-field input[type='text']:hover,
.mt-field input[type='password']:hover {
  border-color: rgba(0, 0, 0, 0.87);
}

.mt-field label {
  color: rgba(0, 0, 0, 0.6);
  left: 16px;
  right: auto;
  width: auto;
  bottom: 20px;

  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.15rem;
  font-weight: 400;
  cursor: text;
  letter-spacing: 0.00937em;
  text-decoration: inherit;
  text-transform: inherit;
  position: absolute;
  pointer-events: none;
  text-align: left;
  transform-origin: left top;

  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.mt-field label::before {
  content: ' ';
  position: absolute;
  display: inline-flex;
  width: 0;
  transform: translateY(-18px) translateX(-2px) scale(0.75);
  transform-origin: left top;
  border-top: 2px solid white;
  z-index: -1;

  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.mt-field input[type='text']:focus ~ label::before,
.mt-field input[type='password']:focus ~ label::before,
.mt-field.label-above label::before {
  transform: translateY(7px) translateX(-4px) scale(1);
  border-top-width: 6px;
  width: calc(100% + 8px);
}
.mt-field input[type='text']:-webkit-autofill ~ label::before,
.mt-field input[type='password']:-webkit-autofill ~ label::before {
  transform: translateY(7px) translateX(-4px) scale(1);
  border-top-width: 6px;
  width: calc(100% + 8px);
}

.mt-field input[type='text']:focus ~ label,
.mt-field input[type='password']:focus ~ label,
.mt-field.label-above label {
  transform: translateY(-130%) scale(0.75);
  z-index: 1;
}
.mt-field input[type='text']:-webkit-autofill ~ label,
.mt-field input[type='password']:-webkit-autofill ~ label {
  transform: translateY(-130%) scale(0.75);
  z-index: 1;
}

.mt-field input[type='text']:focus ~ label,
.mt-field input[type='password']:focus ~ label {
  color: rgba(0, 0, 0, 0.87);
}

.mt-field [class^='mt-icon-'],
.mt-field [class*=' mt-icon-'] {
  color: rgba(0, 0, 0, 0.6);
  left: auto;
  right: 16px;
  width: auto;
  bottom: 20px;

  line-height: 1.15rem;
  position: absolute;
  pointer-events: none;
}

.mt-field [class^='mt-icon-'] ~ input[type='text'],
.mt-field [class^='mt-icon-'] ~ input[type='password'],
.mt-field [class*=' mt-icon-'] ~ input[type='text'],
.mt-field [class*=' mt-icon-'] ~ input[type='password'] {
  padding-right: 48px;
}

/*
 *************
 *  BUTTONS  *
 *************
 */

/* Ripple effect */
.mt-raised-button {
  background-position: center;
  transition: background 0.8s;
}
.mt-raised-button:hover {
  background: #47a7f5 radial-gradient(circle, transparent 1%, #47a7f5 1%)
    center/15000%;
}
.mt-raised-button:active {
  background-color: #6eb9f7;
  background-size: 100%;
  transition: background 0s;
}

/* Button style */
.mt-raised-button {
  font-family: 'Roboto', 'Open Sans';
  border: none;
  border-radius: 2px;
  padding: 12px 18px;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  color: white;
  background-color: #2196f3;
  box-shadow: 0 0 4px #999;
  outline: none;
}

.mt-link-button {
  display: inline-block;
  font-family: 'Roboto', 'Open Sans';
  border: none;
  border-radius: 2px;
  padding: 12px 18px;
  /* font-size: 16px; */
  cursor: pointer;
  color: #2196f3;
}

/************
 * CHECKBOX *
 ************/

.mt-checkbox {
  z-index: 0;
  position: relative;
  display: inline-block;
  color: rgba(0, 0, 0, 0.87);
  font-size: 16px;
  line-height: 1.5;
}

/* Input */
.mt-checkbox > input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  z-index: -1;
  position: absolute;
  left: -10px;
  top: -8px;
  display: block;
  margin: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
  box-shadow: none;
  outline: none;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}

/* Span */
.mt-checkbox > span {
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

/* Box */
.mt-checkbox > span::before {
  content: '';
  display: inline-block;
  box-sizing: border-box;
  margin: 2px 9px 0px 0px;
  border: solid 2px; /* Safari */
  border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
  border-radius: 2px;
  width: 18px;
  height: 18px;
  vertical-align: top;
  transition: border-color 0.2s, background-color 0.2s;
}

/* Checkmark */
.mt-checkbox > span::after {
  content: '';
  display: block;
  position: absolute;
  top: 2px;
  left: 0px;
  width: 10px;
  height: 5px;
  border: solid 2px transparent;
  border-right: none;
  border-top: none;
  transform: translate(3px, 4px) rotate(-45deg);
}

/* Checked, Indeterminate */
.mt-checkbox > input:checked,
.mt-checkbox > input:indeterminate {
  background-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.mt-checkbox > input:checked + span::before,
.mt-checkbox > input:indeterminate + span::before {
  border-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
  background-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.mt-checkbox > input:checked + span::after,
.mt-checkbox > input:indeterminate + span::after {
  border-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
}

.mt-checkbox > input:indeterminate + span::after {
  border-left: none;
  transform: translate(4px, 3px);
}

/* Hover, Focus */
.mt-checkbox:hover > input {
  opacity: 0.04;
}

.mt-checkbox > input:focus {
  opacity: 0.12;
}

.mt-checkbox:hover > input:focus {
  opacity: 0.16;
}

/* Active */
.mt-checkbox > input:active {
  opacity: 1;
  transform: scale(0);
  transition: transform 0s, opacity 0s;
}

.mt-checkbox > input:active + span::before {
  border-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.mt-checkbox > input:checked:active + span::before {
  border-color: transparent;
  background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
}

/* Disabled */
.mt-checkbox > input:disabled {
  opacity: 0;
}

.mt-checkbox > input:disabled + span {
  color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
  cursor: initial;
}

.mt-checkbox > input:disabled + span::before {
  border-color: currentColor;
}

.mt-checkbox > input:checked:disabled + span::before,
.mt-checkbox > input:indeterminate:disabled + span::before {
  border-color: transparent;
  background-color: currentColor;
}

/*********************
 *   MESSAGE BOXES   *
 *********************/

.message-box {
  padding: 16px;
  background: #607d8b;
  border-left: 6px solid #37474f;
  color: #fff;

  font-size: 14px;

  margin-bottom: 32px;
}

.message-box.error {
  background: #ef5350;
  border-left-color: #b71c1c;
}

.message-box.warning {
  background: #ffecb3;
  border-left-color: #ffc107;
  color: rgba(0, 0, 0, 0.87);
}

.message-box.success {
  background: #4caf50;
  border-left-color: #2e7d32;
}

.message-box.info {
  background: #b3e5fc;
  border-left-color: #03a9f4;
  color: rgba(0, 0, 0, 0.87);
}

/**********************
 *   HELPER CLASSES   *
 **********************/

.padding {
  padding: 16px;
}

.padding-2x {
  padding: 32px 0;
}

.upper-case {
  text-transform: uppercase;
}

.no-margin {
  margin: 0;
}

.no-padding {
  padding: 0;
}

@media (max-width:720px)  {
  .mt-checkbox{
    z-index: auto;
  }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
