:root {
  --auth-navy: #0d2538;
  --auth-navy-deep: #071822;
  --auth-orange: #f0503d;
  --auth-orange-dark: #d94031;
  --auth-ink: #152636;
  --auth-muted: #667785;
  --auth-line: #dce4e9;
  --auth-soft: #f4f7f8;
  --auth-white: #ffffff;
  --auth-success: #16775b;
  --auth-danger: #b42318;
}

html,
body.auth-page {
  min-height: 100%;
}

body.auth-page {
  margin: 0;
  color: var(--auth-ink);
  background: var(--auth-soft);
  font-family: "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-shell {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

.auth-brand,
.auth-access {
  position: relative;
  width: 50%;
  min-height: 100vh;
}

.auth-brand {
  color: var(--auth-white);
  background:
    linear-gradient(90deg, rgba(7, 24, 34, .76) 0%, rgba(7, 24, 34, .5) 58%, rgba(7, 24, 34, .28) 100%),
    linear-gradient(180deg, rgba(7, 24, 34, .14) 0%, rgba(7, 24, 34, .14) 48%, rgba(7, 24, 34, .72) 100%),
    url("../images/login-equipe.webp") center center / cover no-repeat;
  overflow: hidden;
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  max-width: 690px;
  min-height: 100vh;
  margin-left: auto;
  padding: 64px 10% 48px 12%;
}

.auth-brand-logo img {
  display: block;
  width: auto;
  max-width: 205px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.auth-brand-copy {
  margin: auto 0;
  padding: 54px 0;
}

.auth-eyebrow,
.auth-card-kicker {
  display: block;
  color: var(--auth-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-brand-copy h1 {
  max-width: 610px;
  margin: 20px 0 24px;
  color: var(--auth-white);
  font-family: "Open Sans", sans-serif;
  font-size: clamp(42px, 4.3vw, 66px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.auth-brand-copy h1 span {
  color: #91dcc6;
}

.auth-brand-copy > p {
  max-width: 555px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 17px;
  line-height: 1.75;
}

.auth-benefits {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
}

.auth-benefits i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #91dcc6;
  border: 1px solid rgba(145, 220, 198, .32);
  border-radius: 50%;
  font-size: 10px;
}

.auth-trust {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  line-height: 1.45;
}

.auth-trust strong {
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 600;
}

.auth-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #91dcc6;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
}

.auth-access {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 6%, rgba(240, 80, 61, .08), transparent 25%),
    #f7f9fa;
}

.auth-access-inner {
  width: 100%;
  max-width: 520px;
  padding: 56px 42px 40px;
}

.auth-mobile-logo {
  display: none;
  margin-bottom: 32px;
}

.auth-mobile-logo img {
  display: block;
  width: auto;
  max-width: 170px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.auth-card {
  padding: 50px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(13, 37, 56, .08);
  border-radius: 24px;
  box-shadow:
    0 2px 3px rgba(13, 37, 56, .03),
    0 24px 70px rgba(13, 37, 56, .1);
  -webkit-animation: auth-card-in .55s cubic-bezier(.2, .75, .25, 1) both;
  animation: auth-card-in .55s cubic-bezier(.2, .75, .25, 1) both;
}

.auth-card-header {
  margin-bottom: 34px;
}

.auth-card-header h2 {
  margin: 10px 0 9px;
  color: var(--auth-ink);
  font-family: "Open Sans", sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.auth-card-header p,
.auth-company-modal .modal-header p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-page .form-group {
  margin-bottom: 24px;
}

.auth-page label {
  margin-bottom: 9px;
  color: #334957;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.auth-label-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 16px;
}

.auth-label-row a {
  margin-bottom: 9px;
  color: var(--auth-orange-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.auth-label-row a:hover,
.auth-label-row a:focus {
  color: var(--auth-orange-dark);
  text-decoration: underline;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  color: #82919b;
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-page .auth-input-wrap .form-control {
  height: 52px;
  padding: 12px 48px 12px 46px;
  color: var(--auth-ink);
  background: var(--auth-white);
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-page .auth-input-wrap .form-control::placeholder {
  color: #9ba8b0;
}

.auth-page .auth-input-wrap .form-control:hover {
  border-color: #b9c7cf;
}

.auth-page .auth-input-wrap .form-control:focus {
  background: #fff;
  border-color: var(--auth-orange);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(240, 80, 61, .11);
}

.auth-input-wrap:focus-within > i {
  color: var(--auth-orange);
}

.auth-password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #71828d;
  background: transparent;
  border: 0;
  border-radius: 8px;
  transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  color: var(--auth-ink);
  background: var(--auth-soft);
  outline: 0;
}

.auth-submit {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 13px 54px;
  color: #fff;
  background: var(--auth-orange);
  border: 1px solid var(--auth-orange);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(240, 80, 61, .2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.auth-submit:hover,
.auth-submit:focus,
.auth-submit:active,
.auth-submit:active:focus {
  color: #fff;
  background: var(--auth-orange-dark);
  border-color: var(--auth-orange-dark);
  outline: 0;
  box-shadow: 0 14px 28px rgba(217, 64, 49, .26);
  transform: translateY(-1px);
}

.auth-submit:focus {
  box-shadow: 0 0 0 4px rgba(240, 80, 61, .18), 0 14px 28px rgba(217, 64, 49, .22);
}

.auth-submit[disabled] {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.auth-submit-arrow {
  position: absolute;
  right: 20px;
  transition: transform .2s ease;
}

.auth-submit:hover .auth-submit-arrow {
  transform: translateX(3px);
}

.auth-submit-spinner {
  display: none;
  position: absolute;
  right: 20px;
}

.auth-submit.is-loading .auth-submit-arrow {
  display: none;
}

.auth-submit.is-loading .auth-submit-spinner {
  display: inline-block;
}

.auth-feedback {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-feedback.is-error {
  color: var(--auth-danger);
  background: #fff4f2;
  border-color: #ffd5cf;
}

.auth-feedback.is-success {
  color: var(--auth-success);
  background: #eefbf6;
  border-color: #c9eee1;
}

.auth-back {
  margin: -10px 0 30px;
  padding: 6px 0;
  color: var(--auth-muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
}

.auth-back i {
  margin-right: 7px;
}

.auth-back:hover,
.auth-back:focus {
  color: var(--auth-orange-dark);
  outline: 0;
}

.auth-footer {
  margin-top: 26px;
  color: #80909a;
  font-size: 11px;
  letter-spacing: .02em;
  text-align: center;
}

.auth-footer i {
  margin-right: 5px;
  color: var(--auth-success);
}

.auth-company-modal .modal-dialog {
  max-width: 500px;
  margin-top: 9vh;
}

.auth-company-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(7, 24, 34, .28);
}

.auth-company-modal .modal-header {
  padding: 30px 34px 18px;
  border: 0;
}

.auth-company-modal .modal-header h3 {
  margin: 8px 0 5px;
  color: var(--auth-ink);
  font-family: "Open Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
}

.auth-company-modal .close {
  width: 34px;
  height: 34px;
  margin-top: -5px;
  background: var(--auth-soft);
  border-radius: 50%;
  opacity: .65;
}

.auth-company-modal .modal-body {
  padding: 8px 34px 32px;
}

.auth-company-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-company-list li + li {
  margin-top: 10px;
}

.auth-company-list a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  min-height: 54px;
  padding: 13px 16px;
  color: var(--auth-ink);
  background: var(--auth-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.auth-company-list a:hover,
.auth-company-list a:focus {
  color: var(--auth-ink);
  background: #fff;
  border-color: rgba(240, 80, 61, .35);
  outline: 0;
  transform: translateX(2px);
}

.auth-company-list i {
  color: var(--auth-orange);
}

@-webkit-keyframes auth-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1500px) {
  .auth-brand {
    width: 54%;
  }

  .auth-access {
    width: 46%;
  }

  .auth-brand-content {
    max-width: none;
    margin-left: 0;
    padding: 48px clamp(72px, 6vw, 124px) 38px;
  }

  .auth-brand-logo img {
    height: 66px;
  }

  .auth-brand-copy {
    max-width: 580px;
    padding: 32px 0;
  }

  .auth-brand-copy h1 {
    max-width: 580px;
    font-size: 58px;
  }

  .auth-brand-copy > p {
    max-width: 500px;
    font-size: 16px;
  }

  .auth-benefits {
    margin-top: 28px;
  }

  .auth-benefits li {
    margin-top: 14px;
  }

  .auth-access-inner {
    max-width: 650px;
    padding: 56px 40px 40px;
  }

  .auth-card {
    padding: 54px;
  }

  .auth-card-header h2 {
    font-size: 40px;
  }

  .auth-page .auth-input-wrap .form-control,
  .auth-submit {
    min-height: 54px;
  }
}

@media (min-width: 861px) and (max-height: 800px) {
  .auth-brand-content {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .auth-brand-logo img {
    height: 56px;
  }

  .auth-brand-copy {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .auth-brand-copy h1 {
    margin-top: 14px;
    margin-bottom: 16px;
    font-size: 44px;
  }

  .auth-brand-copy > p {
    font-size: 14px;
    line-height: 1.6;
  }

  .auth-benefits {
    margin-top: 18px;
  }

  .auth-benefits li {
    margin-top: 8px;
    font-size: 13px;
  }

  .auth-benefits i {
    width: 22px;
    height: 22px;
  }

  .auth-trust-icon {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 1100px) {
  .auth-brand { width: 46%; }
  .auth-access { width: 54%; }

  .auth-brand-content {
    padding-right: 9%;
    padding-left: 9%;
  }

  .auth-brand-copy h1 {
    font-size: 46px;
  }
}

@media (max-width: 860px) {
  .auth-shell {
    display: block;
    min-height: 100vh;
  }

  .auth-brand {
    display: none;
  }

  .auth-access {
    width: 100%;
    min-height: 100vh;
    padding: 28px 0;
  }

  .auth-access-inner {
    max-width: 540px;
    padding: 18px 30px 26px;
  }

  .auth-mobile-logo {
    display: block;
  }
}

@media (max-width: 480px) {
  .auth-access {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 12px 0;
    background: #fff;
  }

  .auth-access-inner {
    padding: 14px 20px 22px;
  }

  .auth-mobile-logo {
    margin-bottom: 20px;
  }

  .auth-mobile-logo img {
    height: 54px;
    max-width: 150px;
  }

  .auth-card {
    padding: 26px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-card-header {
    margin-bottom: 28px;
  }

  .auth-card-header h2 {
    font-size: 34px;
  }

  .auth-page .form-group {
    margin-bottom: 20px;
  }

  .auth-company-modal .modal-dialog {
    margin: 18px 12px;
  }

  .auth-company-modal .modal-header,
  .auth-company-modal .modal-body {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    -webkit-animation-duration: .01ms !important;
    animation-duration: .01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .auth-page {
    background: #fff;
  }

  .auth-brand,
  .auth-footer,
  .auth-password-toggle {
    display: none !important;
  }

  .auth-access {
    width: 100%;
  }

  .auth-card {
    box-shadow: none;
  }
}

/* Compatibilidade com os logins legados de Painel e Parceiro. */
body:not(.auth-page) {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #eee;
}

body:not(.auth-page) .form-signin {
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}

body:not(.auth-page) .form-signin .form-signin-heading,
body:not(.auth-page) .form-signin .checkbox {
  margin-bottom: 10px;
}

body:not(.auth-page) .form-signin .checkbox {
  font-weight: normal;
}

body:not(.auth-page) .form-signin .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}

body:not(.auth-page) .form-signin .form-control:focus {
  z-index: 2;
}

body:not(.auth-page) .form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

body:not(.auth-page) .form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
