/* The native Roundcube login form supplies the fields, authentication and status messages. */
body.task-login #layout-content.tf-login {
  --paper: #f5f6f3;
  --ink: #0f1a1c;
  --subtle: #536268;
  --line: #cdd5d1;
  --field: #fff;
  --accent: #075e66;
  color-scheme: light;
  display: block !important;
  width: 100%;
  height: 100%;
  overflow: auto;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
html.dark-mode body.task-login #layout-content.tf-login {
  --paper: #111b1d;
  --ink: #eef3f1;
  --subtle: #acbab9;
  --line: #415154;
  --field: #1b272a;
  --accent: #78d4d4;
  color-scheme: dark;
}
.tf-login *, .tf-login *::before, .tf-login *::after { box-sizing: border-box; }
.tf-login .tf-shell {
  max-width: 1720px;
  min-height: 100%;
  margin: auto;
  padding: 0 clamp(24px, 3.2vw, 62px) clamp(24px, 3.1vh, 42px);
  display: flex;
  flex-direction: column;
}
.tf-brandbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tf-wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.055em; color: var(--ink); }
.tf-mark { display: block; width: 34px; height: 34px; border-radius: 7px; }
.tf-brand-rule { width: 1px; height: 19px; background: var(--line); margin-inline: 4px 2px; }
.tf-wordmark .tf-brand-product { font-size: 18px; font-weight: 450; letter-spacing: -.035em; color: var(--subtle); }
.tf-login a.tf-home { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 3px; text-decoration: none; font-size: 13px; font-weight: 550; color: var(--subtle); }
.tf-login a.tf-home span { font-size: 18px; line-height: 1; }
.tf-login a.tf-home:hover { color: var(--accent); }
.tf-login .tf-login-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  min-height: min(680px, calc(100svh - 112px));
}
.tf-art {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: #07494d;
  isolation: isolate;
}
.tf-art img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 58%; }
.tf-auth { display: grid; place-items: center; min-width: 0; padding: 48px clamp(32px, 5.5vw, 110px); }
.tf-auth-inner { width: 100%; max-width: 386px; min-width: 0; }
.tf-login #tf-login-heading {
  margin: 0; color: var(--ink); font: 660 clamp(35px, 3.6vw, 54px)/1.25 "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  letter-spacing: -.055em;
}
.tf-intro { margin: 13px 0 0; color: var(--subtle); font-size: 15px; line-height: 1.7; }
.tf-login #login-form {
  position: static; top: auto; margin: 34px 0 0; padding: 0; width: 100%; max-width: none;
  display: block; text-align: left;
}
.tf-login #login-form table, .tf-login #login-form tbody { width: 100%; display: block; }
.tf-login #login-form table { border: 0; border-spacing: 0; margin: 0; }
.tf-login #login-form tr { display: block; margin: 0 0 20px; }
.tf-login #login-form td.title { display: block !important; padding: 0; width: auto; }
.tf-login #login-form label { display: block; margin: 0 0 8px; font-size: 13px; line-height: 1.5; font-weight: 650; color: var(--ink); }
.tf-login #login-form td.input { display: flex; width: 100%; padding: 0; position: relative; }
.tf-login #login-form .input-group-prepend { display: none; }
.tf-login #login-form .form-control {
  display: block; min-width: 0; width: 100%; height: 50px; margin: 0; border: 1px solid var(--line);
  border-radius: 7px; padding: 0 15px; background: var(--field); color: var(--ink);
  font-family: inherit; font-size: 16px; line-height: normal; box-shadow: none;
}
.tf-login #login-form .form-control::placeholder { color: var(--subtle); opacity: .85; font-size: 14px; }
.tf-login #login-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); outline: 0; }
.tf-login #login-form .formbuttons { margin: 25px 0 0; }
.tf-login #rcmloginsubmit {
  display: flex; align-items: center; justify-content: center; position: relative;
  width: 100%; min-height: 50px; padding: 10px 44px; margin: 0; border: 1px solid transparent; border-radius: 7px;
  line-height: 1.4; font-family: inherit; font-size: 16px; font-weight: 650; letter-spacing: .06em;
  color: #fff; background: #096870; box-shadow: none;
  transition: background-color .16s ease;
}
.tf-login #rcmloginsubmit::after {
  content: "→"; display: inline-block; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 400 22px/1 Arial, sans-serif; color: currentColor;
}
.tf-login #rcmloginsubmit:hover { background-color: #08575d; }
html.dark-mode .tf-login #rcmloginsubmit { color: #092628; background: var(--accent); }
html.dark-mode .tf-login #rcmloginsubmit:hover { background: #98e2e3; }
.tf-login #login-footer { margin: 0; }
.tf-login #login-footer:empty { display: none; }
.tf-client { margin: 27px 0 0; padding-top: 15px; border-top: 1px solid var(--line); max-width: 100%; }
.tf-client summary { display: flex; width: fit-content; cursor: pointer; align-items: center; gap: 12px; min-height: 36px; color: var(--subtle); font-size: 13px; font-weight: 550; list-style: none; }
.tf-client summary::-webkit-details-marker { display: none; }
.tf-client summary span { display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.4px 1.4px 0; transform: translateY(-2px) rotate(45deg); }
.tf-client[open] summary span { transform: translateY(2px) rotate(225deg); }
.tf-client-settings { margin-top: 8px; color: var(--subtle); font-size: 13px; }
.tf-client-settings p { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0; }
.tf-client-settings strong { color: var(--ink); font-family: "Geist Mono", Consolas, monospace; font-weight: 500; }
.tf-login :is(a,button,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (min-width: 801px) and (min-height: 960px) { .tf-login .tf-shell { max-height: 1100px; } }
@media (max-width: 800px) {
  .tf-login .tf-shell { padding: 0 clamp(18px,5vw,32px) 32px; }
  .tf-brandbar { min-height: 65px; }
  .tf-wordmark { font-size: 20px; }
  .tf-mark { width: 30px; height: 30px; }
  .tf-login .tf-login-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; min-height: auto; }
  .tf-art { height: clamp(110px,22svh,230px); border-radius: 12px; }
  .tf-art img { object-position: 50% 59%; }
  .tf-auth { display: block; padding: 32px 4px 0; }
  .tf-auth-inner { max-width: 450px; margin: 0 auto; }
  .tf-login #tf-login-heading { font-size: 34px; }
  .tf-intro { font-size: 14px; margin-top: 9px; }
  .tf-login #login-form { margin-top: 23px; }
  .tf-login #login-form tr { margin-bottom: 17px; }
  .tf-client { margin-top: 20px; padding-top: 10px; }
}
@media (max-width: 800px) and (max-height: 630px) { .tf-art { height: 82px; } .tf-auth { padding-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .tf-login #rcmloginsubmit { transition: none; } }
