@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/font-3.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/font-4.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --wt-cream: #212529;
  --wt-cream-2: #1b1f22;
  --wt-surface: #2b3035;
  --wt-surface-2: #343a40;
  --wt-ink: #f8f9fa;
  --wt-muted: #adb5bd;
  --wt-faint: #6c757d;
  --wt-accent: #0d6efd;
  --wt-accent-deep: #0b5ed7;
  --wt-border: rgba(255, 255, 255, 0.13);
  --wt-border-strong: rgba(255, 255, 255, 0.28);
  --wt-font: "Hanken Grotesk", Arial, "Helvetica Neue", Helvetica, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes wt-login-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wt-login-pulse {
  0%,
  100% {
    opacity: 0.32;
    transform: translate3d(-50%, -50%, 0) scale(0.96);
  }
  50% {
    opacity: 0.58;
    transform: translate3d(-50%, -50%, 0) scale(1.04);
  }
}

html,
body,
#layout,
#layout-content {
  width: 100% !important;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: var(--wt-cream) !important;
}

body.task-login {
  width: 100% !important;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--wt-cream) !important;
  color: var(--wt-ink);
  font-family: var(--wt-font) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.task-login *,
body.task-login *::before,
body.task-login *::after {
  box-sizing: border-box;
}

body.task-login .webtech-login-shell,
body.task-login .webtech-login-shell *,
body.task-login .webtech-login-shell input,
body.task-login .webtech-login-shell button,
body.task-login .webtech-login-shell select,
body.task-login .webtech-login-shell label,
body.task-login .webtech-login-shell table,
body.task-login .webtech-login-shell td,
body.task-login .webtech-login-shell th,
body.task-login .webtech-login-shell p,
body.task-login .webtech-login-shell h1,
body.task-login .webtech-login-shell h2,
body.task-login .webtech-login-shell h3,
body.task-login .webtech-login-shell span,
body.task-login .webtech-login-shell a,
body.task-login .webtech-login-shell i {
  font-family: var(--wt-font) !important;
}

body.task-login #layout-menu,
body.task-login #layout-sidebar,
body.task-login #layout-list,
body.task-login #layout-content > .header,
body.task-login #login-footer {
  display: none !important;
}

body.task-login #layout {
  width: 100% !important;
  height: 100vh;
  overflow: hidden !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: radial-gradient(120% 110% at 38% 45%, var(--wt-surface-2), var(--wt-cream) 58%, var(--wt-cream-2) 100%);
}

body.task-login #layout-content {
  display: block;
  width: 100% !important;
  height: 100vh;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.webtech-login-shell {
  position: relative;
  width: 100% !important;
  max-width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden;
  color: var(--wt-ink);
  background: radial-gradient(120% 110% at 38% 45%, var(--wt-surface-2), var(--wt-cream) 58%, var(--wt-cream-2) 100%);
}

.webtech-login-bg,
.webtech-login-bg::before,
.webtech-login-bg::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.webtech-login-bg::before {
  content: "";
  background: linear-gradient(90deg, rgba(33, 37, 41, 0.96), rgba(33, 37, 41, 0.74) 45%, rgba(33, 37, 41, 0.36) 100%);
  z-index: 1;
}

.webtech-login-bg::after {
  content: "";
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.09) 1.1px, transparent 1.3px);
  background-size: 46px 46px;
  opacity: 0.55;
  z-index: 0;
}

.webtech-grid {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(rgba(13, 110, 253, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 110, 253, 0.08) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 35% 50%, #000, transparent 62%);
  opacity: 0.36;
}

.webtech-orbit {
  position: absolute;
  left: 34%;
  top: 50%;
  width: min(68vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(173, 181, 189, 0.18);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 1;
}

.webtech-orbit::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 14%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wt-accent);
  box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.12), 0 0 44px rgba(13, 110, 253, 0.45);
}

.webtech-orbit-one {
  animation: wt-login-pulse 7s ease-in-out infinite;
}

.webtech-orbit-two {
  width: min(52vw, 560px);
  border-color: rgba(255, 255, 255, 0.12);
  animation: wt-login-pulse 8.4s ease-in-out infinite reverse;
}

.webtech-login-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 460px);
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 6vw, 86px);
  min-height: 100%;
  width: min(1180px, calc(100% - 68px));
  margin: 0 auto;
  padding: clamp(24px, 5vh, 54px) 0;
  box-sizing: border-box;
}

.webtech-login-copy,
.webtech-login-card {
  opacity: 0;
  animation: wt-login-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.webtech-login-card {
  animation-delay: 0.12s;
}

.webtech-brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wt-ink);
  font-family: var(--wt-font) !important;
  font-size: 19px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
}

.webtech-brand span {
  display: inline-flex;
  align-items: center;
  font-family: var(--wt-font) !important;
  font-weight: 600;
  padding: 2px 0 2px 7px;
  border-radius: 3px 0 0 3px;
  background: var(--wt-accent-deep);
  color: #fff;
  line-height: 1.2;
}

.webtech-brand strong {
  margin-left: 3px;
  color: var(--wt-ink);
  font-family: var(--wt-font) !important;
  font-weight: 600;
  font-style: normal;
  line-height: 1.2;
}

.webtech-eyebrow {
  margin: 54px 0 0;
  color: var(--wt-accent);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.webtech-login-copy h1 {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--wt-ink);
  font-family: var(--wt-font) !important;
  font-size: clamp(2.4rem, 5.3vw, 5rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.034em;
  line-height: 1;
}

.webtech-lead {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--wt-muted);
  font-family: var(--wt-font) !important;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 400;
  font-style: normal !important;
  line-height: 1.58;
}

.webtech-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.webtech-proof span {
  border: 1px solid var(--wt-border);
  border-radius: 100px;
  background: rgba(52, 58, 64, 0.78);
  color: var(--wt-muted);
  font-family: var(--wt-font) !important;
  font-size: 12px;
  font-weight: 400;
  font-style: normal !important;
  letter-spacing: 0.04em;
  padding: 7px 12px;
}

.webtech-login-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--wt-border);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(52, 58, 64, 0.96), rgba(43, 48, 53, 0.96) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  padding: 30px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.webtech-card-header p {
  margin: 0;
  color: var(--wt-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.webtech-card-header h2 {
  margin: 10px 0 0;
  color: var(--wt-ink);
  font-family: var(--wt-font) !important;
  font-size: 1.8rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.webtech-form {
  margin-top: 24px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.webtech-form *,
body.task-login #login-form,
body.task-login #login-form * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.webtech-form table,
.webtech-form tbody,
.webtech-form tr,
.webtech-form td {
  display: block;
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
}

.webtech-form table {
  table-layout: fixed;
  border-collapse: collapse;
  overflow: hidden;
}

.webtech-form tr {
  margin-top: 16px;
}

.webtech-form tr:first-child {
  margin-top: 0;
}

.webtech-form td.title,
.webtech-form label,
.webtech-form .title,
.webtech-form .input label,
.webtech-form table td:first-child,
body.task-login #login-form label,
body.task-login #login-form .title,
body.task-login #login-form td {
  display: block;
  margin-bottom: 8px;
  color: var(--wt-ink);
  font-family: var(--wt-font) !important;
  font-size: 13px;
  font-weight: 600;
  font-style: normal !important;
  line-height: 1.35;
}

.webtech-form td.input {
  margin: 0;
  overflow: hidden;
}

.webtech-form input[type="text"],
.webtech-form input[type="password"],
.webtech-form input[type="email"],
.webtech-form input[type="search"],
.webtech-form input[type="url"],
.webtech-form input[type="tel"],
.webtech-form select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 46px;
  border: 1px solid var(--wt-border-strong);
  border-radius: 4px;
  background: var(--wt-cream);
  color: var(--wt-ink);
  font: 15px/1.4 var(--wt-font) !important;
  outline: none;
  padding: 12px 13px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.webtech-form input[type="text"]:focus,
.webtech-form input[type="password"]:focus,
.webtech-form select:focus {
  border-color: rgba(13, 110, 253, 0.72);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.webtech-form input[type="submit"],
.webtech-form button[type="submit"],
.webtech-form .button.mainaction {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100% !important;
  min-height: 46px;
  margin-top: 22px;
  border: 0;
  border-radius: 3px;
  background: var(--wt-accent-deep);
  color: #fff !important;
  cursor: pointer;
  font: 600 15px/1.3 var(--wt-font) !important;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s;
}

.webtech-form input[type="submit"]:hover,
.webtech-form button[type="submit"]:hover,
.webtech-form .button.mainaction:hover {
  background: #0a58ca;
  transform: translateY(-1px);
}

#message,
.webtech-login-card .boxwarning,
.webtech-login-card .boxerror,
.webtech-login-card .boxconfirmation,
.webtech-login-card .message {
  display: block;
  margin: 18px 0 0;
  border: 1px solid var(--wt-border);
  border-radius: 6px;
  background: rgba(33, 37, 41, 0.62);
  color: var(--wt-muted);
  font-size: 13px;
  line-height: 1.45;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#message {
  display: none !important;
}

#message.error,
#message.warning,
#message.confirmation,
#message.notice,
#message.loading,
#message.boxerror,
#message.boxwarning,
#message.boxconfirmation {
  display: block !important;
}

#message:empty,
.webtech-login-card .message:empty,
.webtech-login-card .boxwarning:empty,
.webtech-login-card .boxerror:empty,
.webtech-login-card .boxconfirmation:empty {
  display: none !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.webtech-login-card .boxerror,
.webtech-login-card .boxwarning {
  border-color: rgba(220, 53, 69, 0.48);
  color: #ffdad6;
}

.webtech-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--wt-border);
  color: var(--wt-faint);
  font-family: var(--wt-font) !important;
  font-size: 12px;
  font-weight: 400;
  font-style: normal !important;
}

.webtech-card-footer span,
.webtech-card-footer a {
  font-family: var(--wt-font) !important;
  font-style: normal !important;
}

.webtech-card-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  color: var(--wt-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.webtech-footer-icon {
  flex: none;
  color: currentColor;
}

.webtech-card-footer a:hover {
  color: var(--wt-ink);
}

.noscriptwarning {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 28px));
  border: 1px solid rgba(220, 53, 69, 0.48);
  border-radius: 6px;
  background: rgba(33, 37, 41, 0.92);
  color: #ffdad6;
  padding: 12px 14px;
  text-align: center;
}

@media (max-width: 900px) {
  html,
  body,
  body.task-login,
  body.task-login #layout,
  body.task-login #layout-content,
  .webtech-login-shell {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.task-login,
  body.task-login #layout {
    height: auto;
    min-height: 100svh;
    overflow-y: auto !important;
  }

  body.task-login #layout,
  body.task-login #layout-content,
  body.task-login #layout-content > .content,
  body.task-login #login-form,
  body.task-login #login-form table {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.task-login #layout-content,
  .webtech-login-shell {
    height: auto;
    min-height: 100svh;
  }

  .webtech-login-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    min-height: 100svh;
    width: 100% !important;
    max-width: 560px;
    padding: 28px 16px;
  }

  .webtech-login-copy,
  .webtech-login-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .webtech-login-copy {
    text-align: left;
  }

  .webtech-login-copy h1 {
    max-width: 560px;
    font-size: clamp(2.05rem, 9vw, 3.25rem);
    line-height: 1.02;
  }

  .webtech-eyebrow {
    margin-top: 42px;
  }

  .webtech-lead {
    max-width: 520px;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .webtech-proof {
    margin-top: 20px;
  }

  .webtech-orbit {
    left: 50%;
    width: min(92vw, 620px);
  }
}

@media (max-height: 720px) {
  body.task-login,
  body.task-login #layout {
    overflow-y: auto !important;
  }

  .webtech-login-shell {
    height: auto;
    min-height: 100vh;
    overflow: hidden;
  }

  .webtech-login-main {
    min-height: 100vh;
    padding: 24px 0;
  }

  .webtech-eyebrow {
    margin-top: 28px;
  }

  .webtech-proof {
    margin-top: 22px;
  }
}

@media (max-width: 900px) and (max-height: 720px) {
  .webtech-login-main {
    padding: 24px 16px;
  }
}

@media (max-width: 520px) {
  .webtech-login-main {
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px;
  }

  .webtech-brand {
    font-size: 17px;
  }

  .webtech-login-copy h1 {
    margin-top: 18px;
    font-size: clamp(1.95rem, 10vw, 2.65rem);
  }

  .webtech-lead {
    font-size: 0.95rem;
  }

  .webtech-proof {
    gap: 6px;
  }

  .webtech-proof span {
    font-size: 11px;
    padding: 6px 10px;
  }

  .webtech-login-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 18px;
  }

  .webtech-card-header h2 {
    font-size: 1.55rem;
  }

  .webtech-form {
    margin-top: 18px;
  }

  .webtech-form tr {
    margin-top: 13px;
  }

  .webtech-form input[type="text"],
  .webtech-form input[type="password"],
  .webtech-form input[type="email"],
  .webtech-form input[type="search"],
  .webtech-form input[type="url"],
  .webtech-form input[type="tel"],
  .webtech-form select,
  .webtech-form input[type="submit"],
  .webtech-form button[type="submit"],
  .webtech-form .button.mainaction {
    min-height: 44px;
    width: calc(100% - 1px) !important;
    max-width: calc(100% - 1px) !important;
  }

  .webtech-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;
  }

  .webtech-card-footer a {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .webtech-login-copy h1 {
    font-size: 1.82rem;
  }

  .webtech-lead {
    display: none;
  }

  .webtech-proof {
    margin-top: 16px;
  }

  .webtech-login-card {
    padding: 18px;
  }
}

/* Final mobile hardening: works even when Roundcube does not add task-login to body. */
@media (max-width: 900px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .webtech-login-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100svh;
    overflow-x: hidden !important;
  }

  .webtech-login-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 28px 16px !important;
    overflow-x: hidden !important;
  }

  .webtech-login-copy,
  .webtech-login-card {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .webtech-login-card {
    margin-top: 26px !important;
    overflow: hidden !important;
  }

  #login-form,
  #login-form table,
  #login-form tbody,
  #login-form tr,
  #login-form td,
  #login-form p {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #login-form input:not([type="hidden"]),
  #login-form select,
  #login-form button {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .webtech-card-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .webtech-card-footer a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 520px) {
  .webtech-login-main {
    padding: 18px 14px !important;
  }
}
