:root {
  --ink: #17233c;
  --muted: #71809d;
  --blue: #3157d5;
  --blue-dark: #2445b5;
  --line: #e4e9f3;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: #f4f7fc;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  overflow: hidden;
}

.login-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
}

.login-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 58%;
  min-height: 100vh;
  height: 100vh;
  padding: 10%;
  overflow: hidden;
  background-color: #102847;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 28, 72, .88), rgba(22, 54, 133, .28));
}

.hero-content {
  position: relative;
  max-width: 480px;
  color: #fff;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  width: min(100%, 520px);
  margin-bottom: 60px;
  /* justify-content: center; */
  /* padding: 16px 20px; */
  /* border: 1px solid rgba(255, 255, 255, 0.18); */
  /* border-radius: 18px; */
  /* background: rgba(255, 255, 255, 0.04); */
  /* box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(9, 22, 47, 0.12); */
}

.hero-logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(120px, 7vw, 135px);
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.18));
}


.eyebrow,
.panel-kicker {
  display: block;
  color: #91b2ff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero-content h1 {
  margin: 18px 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.hero-content h1 strong {
  color: #f5b83d;
}

.hero-content p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.6;
}

.login-panel {
  display: flex;
  flex-direction: column;
  width: 42%;
  min-height: 100vh;
  height: 100vh;
  background: #f7f8fa;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 12% 16px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}

.brand img {
  max-width: 180px;
  max-height: 60px;
  object-fit: contain;
}

.brand-partner img {
  max-width: 255px;
  max-height: 70px;
  object-fit: contain;
}

.brand-logo {
  max-width: 180px;
}

.brand-ms-logo {
  max-width: 90px;
  max-height: 34px;
  object-fit: contain;
}

.panel-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 48px, 615px);
  /* padding: 18px 12% 16px; */
  margin: 0 auto;
  padding: 18px 0 12px;
}

.panel-kicker {
  color: var(--blue);
}

.panel-content h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 2vw, 34px);
}

.intro,
.help-text {
  color: var(--muted);
  line-height: 1.5;
}

.intro {
  margin: 0 0 24px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 87, 213, .12);
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .8px;
  transition: background .2s, transform .2s;
}

.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.help-text {
  margin: 18px 0 0;
  font-size: 12px;
  text-align: center;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 14px 12%;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.ms-logo {
  max-width: 90px;
  max-height: 34px;
  object-fit: contain;
}

#comodoTL {
  display: inline-block;
  vertical-align: middle;
}

#comodoTL img {
  display: block;
  width: 82px;
  height: 32px;
}

@media (max-width: 800px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
  }

  .login-page {
    display: block;
    height: auto;
    min-height: auto;
  }

  .login-hero {
    display: block;
    width: 100%;
    height: auto;
    min-height: 230px;
    padding: 42px 24px;
  }

  .hero-logo {
    width: min(100%, 360px);
    /* padding: 14px 16px; */
    margin-bottom: 14px;
    border-radius: 16px;
  }

  .hero-logo-img {
    height: clamp(62px, 12vw, 92px);
    max-width: 100%;
  }

  .hero-content h1 {
    margin: 12px 0;
    font-size: 32px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .login-panel {
    width: 100%;
    height: auto;
    min-height: auto;
  }

  .brand {
    gap: 8px;
    padding: 12px 20px;
    align-items: center;
  }

  .brand-trust,
  .brand-partner {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-trust {
    flex: 1 1 22%;
  }

  .brand-partner {
    flex: 1 1 42%;
    padding: 4px 8px;
  }

  .brand-logo {
    width: 100%;
    max-width: 150px;
    max-height: 40px;
  }

  .brand-ms-logo {
    width: 100%;
    max-width: 106px;
    max-height: 28px;
  }

  .panel-content {
    width: min(100% - 30px, 410px);
    padding: 28px 0 20px;
  }

  .login-footer {
    padding: 18px 24px;
  }
}
@media (max-width: 1366px) {
  .panel-content {
    width: min(100% - 30px, 410px);
    padding: 28px 0 20px;
  }
}
