:root {
  --bts-navy: #26366f;
  --bts-blue: #1687c7;
  --bts-teal: #0499a7;
  --bts-surface: #ffffff;
}

.task-login {
  background:
    radial-gradient(circle at 15% 15%, rgba(4, 153, 167, .17), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(22, 135, 199, .16), transparent 38%),
    linear-gradient(145deg, #f8fcfd 0%, #eef7f8 52%, #f4f7fc 100%);
}

.task-login #layout-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.task-login #layout-content::before {
  content: "E-mail corporativo BTS — Business Tax Solutions";
  position: static;
  order: 2;
  width: min(90%, 540px);
  margin-top: .7rem;
  color: var(--bts-navy);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  white-space: normal;
}

.task-login #logo {
  position: static;
  order: 1;
  top: auto;
  width: min(88vw, 390px);
  height: 150px !important;
  max-height: 150px;
  object-fit: contain !important;
  object-position: -9999px -9999px;
  background: url(../images/btscorp-logo.png) center / contain no-repeat;
  filter: drop-shadow(0 12px 22px rgba(38, 54, 111, .14));
}

.task-login #login-form {
  position: static;
  order: 3;
  top: auto;
  width: min(100%, 390px);
  max-width: 390px;
  margin: 1.35rem auto 0;
  padding: 1.75rem;
  border: 1px solid rgba(38, 54, 111, .12);
  border-top: 4px solid var(--bts-teal);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 20px 55px rgba(38, 54, 111, .16);
  box-sizing: border-box;
}

.task-login #login-form table,
.task-login #login-form tbody,
.task-login #login-form tr,
.task-login #login-form td.input {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.task-login #login-form tr + tr {
  margin-top: .85rem;
}

.task-login #login-form td.title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.task-login #login-form .form-control {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border-color: #ccd8e4;
}

.task-login #login-form .form-control:focus {
  border-color: var(--bts-teal);
  box-shadow: 0 0 0 .2rem rgba(4, 153, 167, .16);
}

.task-login #login-form .formbuttons {
  display: block;
  width: 100%;
  margin: 1.15rem 0 .9rem;
}

.task-login #rcmloginsubmit {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bts-navy), var(--bts-blue) 68%, var(--bts-teal));
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 9px 20px rgba(38, 54, 111, .24);
}

.task-login #rcmloginsubmit:hover,
.task-login #rcmloginsubmit:focus {
  background: linear-gradient(135deg, #17234f, #0e6ea7 68%, #037d89);
}

#layout-menu #logo {
  max-width: 54px;
  max-height: 48px;
  object-fit: contain;
}

#taskmenu a.selected,
#taskmenu a:hover {
  color: var(--bts-teal);
}

@media (max-width: 480px) {
  .task-login #layout-content {
    justify-content: flex-start;
    padding: 2rem .8rem;
  }

  .task-login #logo {
    width: min(88vw, 330px);
    height: 128px !important;
    max-height: 128px;
  }

  .task-login #layout-content::before {
    padding: 0 1rem;
    font-size: .92rem;
    line-height: 1.35;
  }

  .task-login #login-form {
    width: 100%;
    padding: 1.35rem;
  }
}

html.dark-mode .task-login {
  background: linear-gradient(145deg, #111a39, #26366f 58%, #07535d);
}

html.dark-mode .task-login #login-form {
  border-color: rgba(4, 153, 167, .45);
  background: rgba(19, 29, 55, .96);
}

html.dark-mode .task-login #layout-content::before {
  color: #f3f8fb;
}
