/* InByte — estilo del login del webmail (tipografía y radios de inbytecr.com) */
@font-face {
  font-family: "Manrope";
  src: url("manrope-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("manrope-latin-ext.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body.task-login,
body.task-login input,
body.task-login button,
body.task-login #login-footer {
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
body.task-login { color: #0A0A0A; }

/* Campos: un solo bloque redondeado (ícono + input), como en inbytecr.com */
body.task-login #login-form .input-group {
  border: 1px solid rgba(10, 10, 10, .10);
  border-radius: 15px;
  background: rgba(10, 10, 10, .03);
  overflow: hidden;
  flex-wrap: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.task-login #login-form .input-group:focus-within {
  border-color: rgba(10, 10, 10, .35);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(10, 10, 10, .06);
}
body.task-login #login-form .input-group-text {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(10, 10, 10, .45);
  padding-left: 18px;
  padding-right: 6px;
}
body.task-login #login-form .form-control {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 54px;
  font-size: 16px;
  color: #0A0A0A;
}
body.task-login #login-form .form-control::placeholder { color: rgba(10, 10, 10, .4); }

/* Botón negro */
body.task-login #rcmloginsubmit {
  background: #0A0A0A !important;
  border: 0 !important;
  border-radius: 15px !important;
  height: 54px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 30px -12px rgba(10, 10, 10, .45);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
body.task-login #rcmloginsubmit:hover {
  background: #262626 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(10, 10, 10, .5);
}
body.task-login #rcmloginsubmit:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 3px; }

/* Badge "Webmail dominio" con borde degradado de marca */
body.task-login #login-footer {
  width: fit-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    linear-gradient(90deg, #F0A04B, #E9A8F2, #8DB6F4, #E6C35C) border-box;
  color: rgba(10, 10, 10, .75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 6px 18px -10px rgba(10, 10, 10, .25);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modo oscuro de Roundcube */
html.dark-mode body.task-login { color: #F2F2F2; }
html.dark-mode body.task-login #login-form .input-group { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
html.dark-mode body.task-login #login-form .input-group:focus-within { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
html.dark-mode body.task-login #login-form .input-group-text { color: rgba(255, 255, 255, .5); }
html.dark-mode body.task-login #login-form .form-control { color: #F2F2F2; }
html.dark-mode body.task-login #rcmloginsubmit { background: #FFFFFF !important; color: #0A0A0A !important; }
html.dark-mode body.task-login #rcmloginsubmit:hover { background: #E6E6E6 !important; }
html.dark-mode body.task-login #login-footer {
  background:
    linear-gradient(#22272B, #22272B) padding-box,
    linear-gradient(90deg, #F0A04B, #E9A8F2, #8DB6F4, #E6C35C) border-box;
  color: rgba(255, 255, 255, .8);
}

/* Bienvenida */
body.task-login .ib-welcome { text-align: center; margin: 0 0 26px; }
body.task-login .ib-welcome h1 {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
  color: #0A0A0A; margin: 0 0 6px;
}
body.task-login .ib-welcome p {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px; color: rgba(10, 10, 10, .55); margin: 0;
}

/* Pie "proporcionado por InByte" */
body.task-login .ib-powered {
  position: fixed; left: 0; right: 0; bottom: 22px; text-align: center;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px; color: rgba(10, 10, 10, .5); letter-spacing: .005em;
}
body.task-login .ib-powered a {
  color: rgba(10, 10, 10, .75); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; margin-left: 3px; vertical-align: middle;
  transition: color .15s ease;
}
body.task-login .ib-powered a:hover { color: #0A0A0A; }
body.task-login .ib-powered img { width: 16px; height: 16px; border-radius: 4px; }
@media (max-height: 640px) {
  body.task-login .ib-powered { position: static; margin: 28px 0 18px; }
}
html.dark-mode body.task-login .ib-welcome h1 { color: #F2F2F2; }
html.dark-mode body.task-login .ib-welcome p,
html.dark-mode body.task-login .ib-powered { color: rgba(255, 255, 255, .55); }
html.dark-mode body.task-login .ib-powered a { color: rgba(255, 255, 255, .8); }
