:root {
  --mail-bg: #111315;
  --mail-surface: #f8fafc;
  --mail-surface-2: #ffffff;
  --mail-ink: #111827;
  --mail-muted: #64748b;
  --mail-line: #d7dde5;
  --mail-accent: #0ea5e9;
  --mail-accent-2: #14b8a6;
  --mail-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

html.task-login,
body.task-login {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(17, 19, 21, 0.98) 0%, rgba(27, 32, 38, 0.98) 54%, rgba(244, 247, 250, 1) 54%, rgba(248, 250, 252, 1) 100%),
    var(--mail-bg) !important;
  color: var(--mail-ink);
}

body.task-login {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.task-login #layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
}

body.task-login #layout-content {
  width: min(100%, 1120px);
  min-height: 640px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: var(--mail-surface);
  box-shadow: var(--mail-shadow);
  overflow: hidden;
}

body.task-login #layout-content:not(.bibop-enhanced) {
  display: grid;
  place-items: center;
  padding: 28px;
}

body.task-login #layout-content.bibop-enhanced {
  display: block;
}

body.task-login .bibop-auth-shell {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
  background: var(--mail-surface);
}

body.task-login .bibop-auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 48px;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(28, 38, 50, 0.98)),
    #111827;
  color: #f8fafc;
}

body.task-login .bibop-auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.82), rgba(0,0,0,0.2));
}

body.task-login .bibop-auth-hero > * {
  position: relative;
  z-index: 1;
}

body.task-login .bibop-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.task-login .bibop-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mail-accent);
  color: #03131f;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.24);
}

body.task-login .bibop-brand-copy {
  min-width: 0;
}

body.task-login .bibop-brand-name {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

body.task-login .bibop-brand-domain {
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.86rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.task-login .bibop-hero-main {
  max-width: 440px;
}

body.task-login .bibop-eyebrow {
  margin: 0 0 14px;
  color: var(--mail-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.task-login .bibop-hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

body.task-login .bibop-hero-copy {
  margin: 18px 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1rem;
  line-height: 1.58;
}

body.task-login .bibop-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.task-login .bibop-meta-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

body.task-login .bibop-meta-label {
  display: block;
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.task-login .bibop-meta-value {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

body.task-login .bibop-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,250,252,0.96)),
    var(--mail-surface);
}

body.task-login .bibop-login-card {
  width: min(100%, 430px);
}

body.task-login .bibop-logo-frame {
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
  overflow: hidden;
}

body.task-login .bibop-logo-frame.has-image {
  padding: 0;
}

body.task-login .bibop-logo-frame.dark-logo {
  height: 112px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #020408;
  border: 1px solid #111827;
}

body.task-login #logo {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  float: none !important;
}

body.task-login #logo.bibop-logo-hidden {
  display: none;
}

body.task-login .bibop-logo-frame.dark-logo #logo {
  max-width: min(100%, 300px);
  max-height: 74px;
}

body.task-login .bibop-logo-fallback {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--mail-ink);
}

body.task-login .bibop-logo-fallback.is-visible {
  display: flex;
}

body.task-login .bibop-logo-fallback-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mail-accent);
  color: #03131f;
  font-weight: 900;
}

body.task-login .bibop-logo-fallback-name {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--mail-ink);
  line-height: 1.2;
}

body.task-login .bibop-logo-fallback-sub {
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--mail-muted);
}

body.task-login .bibop-panel-title {
  margin: 0;
  color: var(--mail-ink);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
}

body.task-login .bibop-panel-copy {
  margin: 9px 0 24px;
  color: var(--mail-muted);
  font-size: 0.96rem;
  line-height: 1.52;
}

body.task-login #login-form {
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 0;
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

body.task-login #login-form table,
body.task-login #login-form tbody,
body.task-login #login-form tr,
body.task-login #login-form td {
  display: block;
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 0;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
}

body.task-login #login-form tr + tr {
  margin-top: 16px;
}

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

body.task-login #login-form td.input {
  display: block !important;
  text-align: left;
}

body.task-login #login-form td.input::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0;
  text-align: left;
}

body.task-login #login-form .input-group-prepend,
body.task-login #login-form .input-group-append {
  display: none !important;
}

body.task-login #login-form td.title {
  margin-bottom: 7px;
}

body.task-login #login-form td.title label {
  display: block;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0;
}

body.task-login #login-form .form-control {
  width: 100%;
  max-width: none !important;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--mail-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--mail-ink);
  font-size: 1rem;
  line-height: 46px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

body.task-login #login-form .form-control:focus {
  border-color: var(--mail-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mail-accent) 20%, transparent);
}

body.task-login .bibop-password-wrap {
  position: relative;
  width: 100%;
}

body.task-login .bibop-password-wrap input {
  padding-right: 48px;
}

body.task-login .bibop-password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #eef2f7;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.task-login .bibop-password-toggle:hover,
body.task-login .bibop-password-toggle:focus {
  background: #e2e8f0;
  color: #0f172a;
  outline: none;
}

body.task-login .bibop-password-toggle svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

body.task-login .formbuttons {
  margin: 22px 0 0;
  width: 100%;
  max-width: none !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

body.task-login #rcmloginsubmit {
  width: 100%;
  max-width: none !important;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--mail-accent) !important;
  color: #03131f !important;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--mail-accent) 28%, transparent);
}

body.task-login #rcmloginsubmit:hover,
body.task-login #rcmloginsubmit:focus {
  filter: brightness(1.04);
}

body.task-login #login-footer {
  display: none;
}

body.task-login .bibop-login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  color: var(--mail-muted);
  font-size: 0.86rem;
}

body.task-login .bibop-login-links a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

body.task-login .bibop-login-links a:hover,
body.task-login .bibop-login-links a:focus {
  color: #0f172a;
  text-decoration: underline;
}

body.task-login .voice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.task-login .noscriptwarning {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

@media (max-width: 900px) {
  body.task-login #layout {
    padding: 18px;
  }

  body.task-login #layout-content,
  body.task-login .bibop-auth-shell {
    min-height: auto;
  }

  body.task-login .bibop-auth-shell {
    grid-template-columns: 1fr;
  }

  body.task-login .bibop-auth-hero {
    padding: 30px;
  }

  body.task-login .bibop-hero-main {
    max-width: 100%;
  }

  body.task-login .bibop-meta-grid {
    grid-template-columns: 1fr;
  }

  body.task-login .bibop-auth-panel {
    padding: 30px;
  }
}

@media (max-width: 520px) {
  body.task-login #layout {
    padding: 10px;
  }

  body.task-login .bibop-auth-hero,
  body.task-login .bibop-auth-panel {
    padding: 22px;
  }

  body.task-login .bibop-hero-title {
    font-size: 2rem;
  }

  body.task-login .bibop-login-links {
    justify-content: center;
    text-align: center;
  }
}
