:root {
  --color-accent: #e69418;
  --color-accent-strong: #e0aa00;
  --color-border: rgba(245, 245, 245, 0.68);
  --color-surface: #f8f8f8;
  --color-text: #f8f8f8;
  --color-muted: rgba(248, 248, 248, 0.9);
  --color-panel: rgba(112, 112, 112, 0.34);
  --color-panel-border: rgba(245, 245, 245, 0.46);
  --color-overlay: rgba(0, 0, 0, 0.62);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body.task-login {
  font-family: "Jost", sans-serif;
  background: #0a0a0a;
  color: var(--color-text);
}

html body.task-login {
  background: #0a0a0a !important;
  color: var(--color-text) !important;
  display: block !important;
  min-height: 100vh !important;
  overflow-x: hidden;
}

html body.task-login::before {
  content: none !important;
  background: none !important;
}

body.task-login button,
body.task-login input,
body.task-login label {
  font: inherit;
}

html body.task-login #layout {
  width: 100% !important;
  min-height: 100vh !important;
  position: relative !important;
  z-index: 1 !important;
}

html body.task-login .page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 10px;
}

html body.task-login .hero-frame {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 20px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 48px 24px;
  border-radius: 30px;
  background-image: url("../images/background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

html body.task-login .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.14) 36%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), var(--color-overlay));
}

html body.task-login .login-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 520px) !important;
  max-width: none !important;
  padding: 26px 38px 34px !important;
  border: 1px solid var(--color-panel-border) !important;
  border-radius: 18px !important;
  background: var(--color-panel) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html body.task-login #login-form {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
}

html body.task-login #login-form::before {
  content: none !important;
  background: none !important;
}

html body.task-login .login-card #logo {
  display: block;
  width: min(188px, 54%);
  margin: 0 auto 18px;
  flex: 0 0 auto;
  top: 0 !important;
}

html body.task-login .login-card .login-title {
  margin: 0 0 30px;
  text-align: center;
  font-size: 1.58rem;
  line-height: 1.15;
  font-weight: 600;
  color: #f7f7f7;
  order: 2;
  flex: 0 0 auto;
}

html body.task-login .login-card .login-form {
  display: grid;
  gap: 0;
  order: 3;
  flex: 1 1 auto;
  min-width: 0;
}

html body.task-login .login-card .login-form table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0 18px;
  table-layout: fixed;
}

html body.task-login .login-card .login-form tbody,
html body.task-login .login-card .login-form tr,
html body.task-login .login-card .login-form td {
  display: block;
  width: 100%;
  min-width: 0;
}

html body.task-login .login-card .login-form tr {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

html body.task-login .login-card .login-form tr + tr {
  margin-top: 18px;
}

html body.task-login .login-card .login-form td.title {
  display: block !important;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--color-muted) !important;
  font-weight: 600;
  margin-bottom: 0;
}

html body.task-login .login-card .login-form .input-group-text,
html body.task-login .login-card .login-form .icon,
html body.task-login .login-card .login-form .sebicon {
  display: none !important;
}

html body.task-login .login-card .login-form label {
  display: flex !important;
  color: var(--color-muted) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  align-items: center !important;
}
html body.task-login .login-card .login-form td.input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

html body.task-login .login-card .login-form td.input input,
html body.task-login .login-card .login-form input[type="text"],
html body.task-login .login-card .login-form input[type="password"] {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(245, 245, 245, 0.76);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  background-image: none !important;
  color: var(--color-surface);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

html body.task-login .login-card .login-form tr:first-child td.input input,
html body.task-login .login-card .login-form tr:first-child input[type="text"] {
  border-color: var(--color-accent);
}

html body.task-login .login-card .login-form td.input input {
  padding-left: 20px !important;
}

html body.task-login .login-card .login-form input::placeholder {
  color: rgba(250, 250, 250, 0.84);
}

html body.task-login .login-card .login-form input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 4px rgba(230, 148, 24, 0.16) !important;
}

html body.task-login .login-card .login-form input:focus-visible {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 4px rgba(230, 148, 24, 0.16) !important;
}

html body.task-login #rcmloginuser:focus,
html body.task-login #rcmloginpwd:focus,
html body.task-login #login-form input.form-control:focus,
html body.task-login #login-form input[type="text"]:focus,
html body.task-login #login-form input[type="password"]:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 4px rgba(230, 148, 24, 0.16) !important;
}

html body.task-login .login-card .login-form .input-group {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body.task-login .login-card .login-form .input-group > .form-control {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body.task-login .remember-user-row {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  min-height: 20px;
  margin-top: 18px;
}

html body.task-login .remember-user-label {
  display: inline-flex !important;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-height: 20px;
  gap: 10px;
  margin: 0;
  color: rgba(248, 248, 248, 0.94) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}

html body.task-login .remember-user-label input[type="checkbox"] {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #efc100;
  cursor: pointer;
}

html body.task-login .remember-user-label span {
  display: block;
  line-height: 20px;
}

html body.task-login .login-card .login-form p.formbuttons {
  margin: 18px 0 0;
}

html body.task-login .login-card .login-form input[type="submit"],
html body.task-login .login-card .login-form button,
html body.task-login #login-form input.button.mainaction,
html body.task-login #login-form .btn-primary,
html body.task-login #login-form .mainaction {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #efc100 0%, #e0ad00 100%) !important;
  color: #ffffff !important;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(181, 133, 0, 0.34);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
  order: 4;
}

html body.task-login .login-card .login-form input[type="submit"]:hover,
html body.task-login .login-card .login-form button:hover,
html body.task-login #login-form input.button.mainaction:hover,
html body.task-login #login-form .btn-primary:hover,
html body.task-login #login-form .mainaction:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(181, 133, 0, 0.36);
}

html body.task-login .login-card .login-form input[type="submit"]:focus-visible,
html body.task-login .login-card .login-form button:focus-visible,
html body.task-login #login-form input.button.mainaction:focus-visible,
html body.task-login #login-form .btn-primary:focus-visible,
html body.task-login #login-form .mainaction:focus-visible {
  outline: 3px solid rgba(250, 250, 250, 0.72);
  outline-offset: 3px;
}

html body.task-login .login-card .login-form input[type="submit"]:active,
html body.task-login .login-card .login-form button:active,
html body.task-login #login-form input.button.mainaction:active,
html body.task-login #login-form .btn-primary:active,
html body.task-login #login-form .mainaction:active {
  transform: translateY(1px);
}

html body.task-login #login-footer {
  margin-top: 22px;
  color: rgba(250, 250, 250, 0.78);
  text-align: center;
  order: 5;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  html body.task-login .hero-frame {
    border-radius: 24px;
    padding: 32px 18px;
  }

  html body.task-login .login-card {
    width: min(100%, 500px) !important;
    padding: 22px 28px 28px !important;
  }
}

@media (max-width: 640px) {
  html body.task-login .page-shell {
    padding: 8px;
  }

  html body.task-login .hero-frame {
    min-height: calc(100vh - 16px);
    border-radius: 22px;
    padding: 20px 12px;
    align-items: center;
  }

  html body.task-login .login-card {
    padding: 22px 18px 24px !important;
    border-radius: 14px !important;
  }

  html body.task-login .login-card #logo {
    width: min(168px, 62%);
    margin-bottom: 16px;
  }

  html body.task-login .login-card .login-title {
    margin-bottom: 24px;
    font-size: 1.35rem;
  }

  html body.task-login .login-card .login-form {
    gap: 20px;
  }

  html body.task-login .login-card .login-form tr {
    gap: 10px;
  }

  html body.task-login .login-card .login-form tr + tr {
    margin-top: 14px;
  }

  html body.task-login .login-card .login-form td.title {
    font-size: 1rem;
  }

  html body.task-login .login-card .login-form td.input input,
  html body.task-login .login-card .login-form input[type="text"],
  html body.task-login .login-card .login-form input[type="password"] {
    min-height: 48px;
    padding: 0 16px;
  }

  html body.task-login .remember-user-row {
    margin-top: 14px;
  }

  html body.task-login .login-card .login-form p.formbuttons {
    margin-top: 14px;
  }

  html body.task-login .remember-user-label {
    font-size: 0.92rem !important;
  }

  html body.task-login .login-card .login-form input[type="submit"],
  html body.task-login .login-card .login-form button,
  html body.task-login #login-form input.button.mainaction,
  html body.task-login #login-form .btn-primary,
  html body.task-login #login-form .mainaction {
    min-height: 52px;
  }
}
