/* G7 Mail login — viewport-safe, responsive and isolated from Elastic defaults. */
.task-login #layout {
  height: 100dvh;
  min-height: 100%;
}

.task-login #layout-content {
  display: block;
  height: 100%;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.g7-login-shell {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(430px, 47%) minmax(460px, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.g7-brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(34px, 4vw, 68px) clamp(36px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  color: #f8fafc;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(188,143,74,.12), transparent 30%),
    #0b0f17;
}

.g7-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .24;
  background-image:
    linear-gradient(rgba(174,184,196,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174,184,196,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}

.g7-brand-glow {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(188,143,74,.16);
  border-radius: 50%;
}

.g7-brand-glow-one { width: 520px; height: 520px; right: -300px; top: 21%; }
.g7-brand-glow-two { width: 380px; height: 380px; right: -205px; top: 29%; }

.g7-brand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.g7-brand-logo {
  width: clamp(150px, 13vw, 205px);
  height: auto;
  object-fit: contain;
}

.g7-product-pill {
  padding: 9px 14px;
  border: 1px solid rgba(229,197,131,.25);
  border-radius: 999px;
  color: #e5c583;
  background: rgba(188,143,74,.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.g7-brand-copy {
  margin: auto 0;
  max-width: 620px;
  padding: clamp(38px, 6vh, 72px) 0;
}

.g7-eyebrow,
.g7-kicker {
  display: block;
  color: #e5c583;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .22em;
}

.g7-brand-copy h1 {
  margin: 24px 0;
  max-width: 580px;
  font-size: clamp(46px, 5vw, 82px);
  font-weight: 660;
  line-height: .99;
  letter-spacing: -.052em;
}

.g7-brand-copy h1 em {
  color: #e5c583;
  font-style: normal;
  font-weight: 540;
}

.g7-brand-copy > p {
  max-width: 530px;
  margin: 0;
  color: #aeb8c4;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.7;
}

.g7-trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 530px;
  padding-top: 22px;
  border-top: 1px solid rgba(174,184,196,.14);
}

.g7-trust-icon {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  color: #e5c583;
  background: rgba(188,143,74,.11);
}

.g7-trust-row strong,
.g7-trust-row small { display: block; }
.g7-trust-row strong { margin-bottom: 4px; font-size: 13px; }
.g7-trust-row small { color: #8995a7; font-size: 11px; }

.g7-brand-footer {
  margin: 24px 0 0;
  color: #4f5b6c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .22em;
}

.g7-form-panel {
  position: relative;
  min-height: 100%;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 88% 10%, rgba(188,143,74,.07), transparent 24%),
    #fff;
}

.g7-form-wrap {
  width: min(calc(100% - 64px), 470px);
  margin: auto;
  padding: clamp(40px, 6vh, 72px) 0 clamp(28px, 4vh, 48px);
}

.g7-language-switch {
  position: absolute;
  top: 28px;
  right: 34px;
  display: flex;
  padding: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: rgba(245,247,250,.92);
}

.g7-language-switch a {
  padding: 7px 10px;
  border-radius: 7px;
  color: #64748b;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.g7-language-switch a.active {
  color: #111827;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.1);
}

.g7-form-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 0 0 30px;
}

.g7-form-brand > img {
  width: 82px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.g7-form-brand > span {
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 18px;
  border-left: 1px solid #d9dee7;
}

.g7-form-brand strong {
  color: #111827;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.g7-form-brand small {
  margin-top: 5px;
  color: #8c652d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.g7-welcome-copy { margin-bottom: 28px; }
.g7-kicker { margin: 0 0 10px; color: #8c652d; }

.g7-welcome-copy h2 {
  margin: 0;
  color: #151c2a;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.g7-welcome-copy > p:last-child {
  margin: 11px 0 0;
  color: #64748b;
  font-size: 14px;
}

/* Reset the original Elastic login positioning and table layout. */
.task-login #login-form {
  position: static;
  top: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.task-login #login-form table,
.task-login #login-form tbody,
.task-login #login-form tr,
.task-login #login-form td {
  display: block;
  width: 100%;
}

.task-login #login-form tr { margin: 0 0 17px; }

.task-login #login-form .title {
  padding: 0;
}

.task-login #login-form .title label {
  display: block;
  margin: 0 0 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.task-login #login-form .input {
  height: 54px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #d7dee8;
  border-radius: 11px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.task-login #login-form .input .input-group-prepend {
  height: 100%;
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  margin: 0 12px 0 0;
}

.task-login #login-form .input .input-group-text {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #64748b;
  background: transparent;
}

.task-login #login-form .input .icon::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.task-login #login-form .input .icon.user::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.task-login #login-form .input .icon.pass::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.task-login #login-form .input:focus-within {
  border-color: #bc8f4a;
  box-shadow: 0 0 0 4px rgba(188,143,74,.12);
}

.task-login #login-form .input input.form-control,
.task-login #login-form .input input.form-control:focus,
.task-login #login-form .input input.form-control:focus-visible {
  min-width: 0;
  width: 1%;
  flex: 1 1 auto;
  height: 100%;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0;
  color: #111827;
  background: transparent !important;
  box-shadow: none !important;
}

.task-login #login-form .input input.form-control::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.task-login #g7-password-toggle {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}

.task-login #g7-password-toggle:hover,
.task-login #g7-password-toggle:focus-visible {
  color: #111827;
  background: #eef2f7;
}

.task-login #g7-password-toggle span {
  position: absolute;
  top: 10px;
  left: 5px;
  width: 16px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.task-login #g7-password-toggle span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.task-login #g7-password-toggle[aria-pressed="true"] span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -4px;
  width: 21px;
  height: 2px;
  transform: rotate(45deg);
  background: currentColor;
}

.task-login #login-form .formbuttons {
  margin: 24px 0 0;
}

.task-login #rcmloginsubmit {
  width: 100%;
  height: 54px;
  margin: 0;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #bc8f4a;
  box-shadow: 0 12px 25px rgba(140,101,45,.2);
  font-weight: 750;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.task-login #rcmloginsubmit:hover {
  background: #8c652d;
  box-shadow: 0 14px 28px rgba(140,101,45,.24);
  transform: translateY(-1px);
}

.task-login #rcmloginsubmit:focus-visible {
  outline: 2px solid #8c652d !important;
  outline-offset: 3px !important;
}

.g7-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 20px;
  color: #738096;
}

.g7-security-note > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #8c652d;
  font-weight: 800;
}

.g7-security-note p { margin: 0; font-size: 10px; line-height: 1.45; }
.g7-security-note strong { color: #4a5668; font-weight: 700; }

.g7-login-footer {
  display: flex;
  justify-content: center;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
  color: #8b96a7;
  font-size: 9px;
}

.g7-mobile-header { display: none; }

@media (max-height: 780px) and (min-width: 741px) {
  .g7-brand-panel { padding-top: 30px; padding-bottom: 28px; }
  .g7-brand-logo { width: 140px; }
  .g7-brand-copy { padding: 28px 0; }
  .g7-brand-copy h1 { margin: 16px 0; font-size: clamp(40px, 4.3vw, 62px); }
  .g7-brand-copy > p { font-size: 14px; line-height: 1.55; }
  .g7-form-wrap { padding-top: 54px; padding-bottom: 22px; }
  .g7-form-brand { margin-bottom: 20px; }
  .g7-welcome-copy { margin-bottom: 22px; }
  .g7-welcome-copy h2 { font-size: 32px; }
  .task-login #login-form tr { margin-bottom: 13px; }
  .task-login #login-form .input { height: 49px; }
  .task-login #rcmloginsubmit { height: 49px; }
  .g7-security-note { margin: 16px 0 14px; }
  .g7-login-footer { padding-top: 13px; }
}

@media (max-width: 900px) {
  .g7-login-shell { grid-template-columns: minmax(350px, 42%) minmax(420px, 1fr); }
  .g7-brand-copy h1 { font-size: clamp(40px, 5vw, 58px); }
}

@media (max-width: 740px) {
  .task-login #layout-content { background: #fff; }
  .g7-login-shell { display: block; min-height: 100%; }
  .g7-brand-panel { display: none; }
  .g7-form-panel {
    min-height: 100%;
    display: block;
    padding-top: 0;
    background: #fff;
  }

  .g7-form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 138px;
    background: #0b0f17;
  }

  .g7-mobile-header {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    color: #e5c583;
  }

  .g7-mobile-header img { width: 104px; height: auto; }
  .g7-mobile-header span {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .g7-form-wrap {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: none;
    margin: 10px 16px 0;
    padding: 28px 24px 24px;
    border-radius: 22px 22px 0 0;
    background: #fff;
  }

  .g7-language-switch {
    position: static;
    float: right;
    margin: -14px -8px 0 16px;
  }

  .g7-form-brand { justify-content: flex-start; margin: 4px 0 24px; }
  .g7-form-brand > img { width: 72px; height: 51px; }
  .g7-form-brand > span { display: none; }
  .g7-welcome-copy { clear: both; margin-bottom: 24px; }
}

@media (max-width: 380px) {
  .g7-form-wrap { margin-right: 10px; margin-left: 10px; padding-right: 18px; padding-left: 18px; }
  .g7-welcome-copy h2 { font-size: 29px; }
}
