@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@600;700;800&display=swap');

html,
html.dark-mode {
  color-scheme: light;
}

body.task-login,
html.dark-mode body.task-login {
  --codega-blue: #176bff;
  --codega-blue-dark: #0754dc;
  --codega-ink: #102033;
  --codega-muted: #66758a;
  --codega-line: #dce4ed;
  min-height: 100vh;
  overflow: auto;
  color: var(--codega-ink);
  background: #f5f8fc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.task-login #layout,
html.dark-mode body.task-login #layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  width: 100%;
  min-height: 100vh;
  height: auto;
  padding: 0 !important;
  overflow: visible;
  background: #f5f8fc;
}

body.task-login .codega-hero {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(36px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #092b62 0%, #0b55c7 55%, #1674ff 100%);
}

body.task-login .codega-hero::before,
body.task-login .codega-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body.task-login .codega-hero::before {
  width: 430px;
  height: 430px;
  top: -235px;
  right: -140px;
  border: 70px solid rgba(255,255,255,.08);
}

body.task-login .codega-hero::after {
  width: 330px;
  height: 330px;
  left: -190px;
  bottom: -170px;
  background: rgba(255,180,35,.16);
}

body.task-login .codega-hero-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: #fff;
  font: 800 24px/1 Sora, sans-serif;
  letter-spacing: -.04em;
  text-decoration: none;
}

body.task-login .codega-hero-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #0b4aaf;
  background: #ffb423;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

body.task-login .codega-hero-copy {
  max-width: 620px;
  margin: 72px 0;
}

body.task-login .codega-hero-eyebrow {
  margin: 0 0 18px;
  color: #a9ccff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}

body.task-login .codega-hero-copy h2 {
  max-width: 600px;
  margin: 0;
  color: #fff;
  font: 800 clamp(38px, 4.7vw, 66px)/1.06 Sora, sans-serif;
  letter-spacing: -.055em;
}

body.task-login .codega-hero-copy > p:last-child {
  max-width: 540px;
  margin: 24px 0 0;
  color: #dbeaff;
  font-size: 17px;
  line-height: 1.7;
}

body.task-login .codega-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: #dbeaff;
  font-size: 13px;
}

body.task-login #layout-content,
html.dark-mode body.task-login #layout-content {
  align-self: center;
  justify-self: center;
  display: block !important;
  flex: none;
  width: min(82%, 480px) !important;
  height: auto !important;
  min-height: 0;
  margin: 40px auto !important;
  padding: 44px 46px;
  overflow: visible;
  color: var(--codega-ink);
  text-align: left;
  border: 1px solid rgba(220,228,237,.92);
  border-radius: 24px;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 24px 70px rgba(28,55,90,.16);
}

body.task-login .codega-login-brand {
  height: auto !important;
  text-align: left;
}

body.task-login #logo,
html.dark-mode body.task-login #logo {
  position: static !important;
  top: auto !important;
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 0 24px;
  opacity: 1 !important;
}

body.task-login .codega-eyebrow {
  margin: 0 0 10px;
  color: var(--codega-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

body.task-login .codega-login-brand h2,
html.dark-mode body.task-login .codega-login-brand h2 {
  margin: 0;
  color: var(--codega-ink);
  font: 700 29px/1.2 Sora, sans-serif;
  letter-spacing: -.035em;
}

body.task-login .codega-intro,
html.dark-mode body.task-login .codega-intro {
  margin: 10px 0 28px;
  color: var(--codega-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.task-login #login-form,
html.dark-mode body.task-login #login-form {
  position: static !important;
  top: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  color: var(--codega-ink);
}

body.task-login #login-form table,
body.task-login #login-form tbody,
body.task-login #login-form tr {
  display: block;
  width: 100%;
}

body.task-login #login-form td.title {
  display: none !important;
}

body.task-login #login-form td.input {
  display: flex !important;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
}

body.task-login #login-form .input-group {
  display: flex;
  flex-wrap: nowrap !important;
  width: 100%;
}

body.task-login #login-form .input-group-prepend {
  display: flex;
  flex: 0 0 48px;
}

body.task-login #login-form .input-group-text,
html.dark-mode body.task-login #login-form .input-group-text {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  padding: 0;
  color: var(--codega-blue);
  border: 1px solid var(--codega-line);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  background: #edf4ff;
}

body.task-login #login-form .form-control,
html.dark-mode body.task-login #login-form .form-control {
  flex: 1 1 auto;
  width: 1%;
  height: 54px;
  padding: 0 16px;
  color: var(--codega-ink) !important;
  border: 1px solid var(--codega-line) !important;
  border-radius: 0 13px 13px 0;
  background: #fff !important;
  box-shadow: none;
  font: 500 15px Inter, sans-serif;
}

body.task-login #login-form .form-control:focus,
html.dark-mode body.task-login #login-form .form-control:focus {
  color: var(--codega-ink) !important;
  border-color: var(--codega-blue) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(23,107,255,.12);
}

body.task-login #login-form .form-control::placeholder,
html.dark-mode body.task-login #login-form .form-control::placeholder {
  color: #8795a8;
  opacity: 1;
}

body.task-login #login-form .formbuttons {
  width: 100%;
  height: auto;
  margin: 8px 0 0;
}

body.task-login #login-form .button.mainaction,
html.dark-mode body.task-login #login-form .button.mainaction {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 13px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--codega-blue), var(--codega-blue-dark)) !important;
  box-shadow: 0 14px 28px rgba(23,107,255,.24);
  font: 700 14px Sora, sans-serif;
}

body.task-login #login-footer,
html.dark-mode body.task-login #login-footer {
  height: auto !important;
  margin: 23px 0 0;
  color: #7d8a9c;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

body.task-login #login-footer a {
  color: var(--codega-blue);
}

body.task-login .codega-login-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

body.task-login .codega-login-actions a,
html.dark-mode body.task-login .codega-login-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  color: #315271;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  background: #f7faff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

body.task-login .codega-login-actions a:hover {
  color: var(--codega-blue);
  border-color: #b9d2ff;
  background: #edf4ff;
}

body.task-login .codega-secure-note,
html.dark-mode body.task-login .codega-secure-note {
  margin: 11px 0 0;
  color: #8795a8;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  body.task-login #layout,
  html.dark-mode body.task-login #layout {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 24px !important;
    background: radial-gradient(circle at 10% 10%, rgba(23,107,255,.14), transparent 25rem), #f5f8fc;
  }
  body.task-login .codega-hero { display: none; }
  body.task-login #layout-content,
  html.dark-mode body.task-login #layout-content {
    width: min(100%, 480px) !important;
    margin: 0 !important;
  }
}

@media (max-width: 520px) {
  body.task-login #layout,
  html.dark-mode body.task-login #layout { padding: 16px !important; }
  body.task-login #layout-content,
  html.dark-mode body.task-login #layout-content {
    padding: 32px 22px;
    border-radius: 18px;
  }
  body.task-login .codega-login-brand h2 { font-size: 25px; }
  body.task-login .codega-login-actions { flex-direction: column; }
  body.task-login .codega-login-actions a { width: 100%; }
}

@media (max-height: 720px) and (min-width: 901px) {
  body.task-login .codega-hero { padding-top: 34px; padding-bottom: 34px; }
  body.task-login .codega-hero-copy { margin: 34px 0; }
  body.task-login #layout-content { padding-top: 30px; padding-bottom: 30px; }
}
