:root {
  --azbt-orange: #ff9700;
  --azbt-orange-deep: #e87900;
  --azbt-ink: #0b1118;
  --azbt-panel: #111922;
  --azbt-panel-soft: #18232e;
  --azbt-text: #f4f7fa;
  --azbt-muted: #9da9b5;
  --azbt-line: rgba(255, 255, 255, 0.13);
  --azbt-danger: #c62828;
  --azbt-success: #207a45;
}

html,
body {
  background: var(--azbt-ink) !important;
}

.azbt-webmail-shell {
  box-sizing: border-box;
  min-width: 100%;
  min-height: 100%;
  padding: clamp(12px, 2.1vw, 32px);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 151, 0, 0.12), transparent 31%),
    linear-gradient(135deg, #0b1118 0%, #111922 52%, #080d12 100%) !important;
  color: var(--azbt-text);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

#loginContent {
  box-sizing: border-box;
  position: relative;
  -webkit-box-flex: 0 !important;
  -webkit-flex: 0 1 auto !important;
  flex: 0 1 auto !important;
  width: min(1480px, calc(100vw - clamp(24px, 4.2vw, 64px)));
  height: min(820px, calc(100vh - clamp(24px, 4.2vw, 64px)));
  min-height: 560px;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: var(--azbt-panel) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 151, 0, 0.05);
}

.azbt-hero {
  box-sizing: border-box;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background-color: #10161b;
  background-image: url("/SOGo-custom/sivam-webmail-hero-v1.webp");
  background-position: 46% center;
  background-size: cover;
  margin: 0 !important;
}

.azbt-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.24), rgba(5, 8, 10, 0.03) 54%, rgba(5, 8, 10, 0.47)),
    linear-gradient(0deg, rgba(5, 8, 10, 0.88), rgba(5, 8, 10, 0.03) 58%, rgba(5, 8, 10, 0.25));
  content: "";
}

.azbt-hero-content {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: clamp(28px, 3vw, 50px);
}

.azbt-sivam-lockup {
  width: min(320px, 48%);
  padding: 14px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.azbt-sivam-lockup img {
  display: block;
  width: 100%;
  max-height: 98px;
  object-fit: contain;
  object-position: left center;
}

.azbt-hero-company {
  margin-top: 7px;
  color: #9a5500;
  font-size: 14px;
  font-weight: 700;
}

.azbt-hero-tagline {
  margin-top: 3px;
  color: #34404a;
  font-size: 12px;
}

.azbt-hero-message {
  max-width: 480px;
  margin-top: auto;
  padding: 28px 0 24px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.76);
}

.azbt-kicker {
  display: inline-block;
  padding-left: 27px;
  color: var(--azbt-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  position: relative;
}

.azbt-kicker::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--azbt-orange);
  content: "";
}

.azbt-hero-message h2 {
  margin: 12px 0 9px;
  color: #fff;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.azbt-hero-message p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.azbt-hero-features {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: clamp(12px, 2vw, 30px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
}

.azbt-hero-features > div {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 500;
}

.azbt-hero-features md-icon {
  color: var(--azbt-orange) !important;
  font-size: 19px;
}

.azbt-login-panel {
  box-sizing: border-box;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 151, 0, 0.09), transparent 28%),
    linear-gradient(145deg, #151e27 0%, #0d141b 100%) !important;
  color: var(--azbt-text) !important;
  margin: 0 !important;
}

.azbt-login-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--azbt-orange) 20%, var(--azbt-orange) 80%, transparent);
  content: "";
  opacity: 0.9;
}

#login.sg-login-content {
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  width: 100% !important;
  max-width: 590px !important;
  min-height: 100%;
  margin: 0 auto !important;
  padding: clamp(28px, 3.2vw, 52px) clamp(28px, 4vw, 64px) !important;
}

.azbt-login-brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 13px;
  margin-bottom: clamp(24px, 4vh, 42px);
}

.azbt-brand-monogram {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-width: 64px;
  height: 52px;
  font-size: 43px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.23em;
}

.azbt-brand-monogram span {
  color: var(--azbt-orange);
}

.azbt-brand-monogram b {
  color: #fff;
  font-weight: 800;
}

.azbt-brand-name {
  min-width: 0;
}

.azbt-brand-name strong,
.azbt-brand-name small {
  display: block;
}

.azbt-brand-name strong {
  color: #fff;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.06em;
}

.azbt-brand-name strong span {
  color: var(--azbt-orange);
}

.azbt-brand-name small {
  margin-top: 6px;
  color: var(--azbt-muted);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.azbt-login-form {
  position: relative;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.azbt-login-heading {
  margin-bottom: 21px;
}

.azbt-login-heading > span {
  color: var(--azbt-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.azbt-login-heading h1 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.azbt-login-heading p {
  margin: 0;
  color: var(--azbt-muted);
  font-size: 13px;
  line-height: 1.5;
}

.azbt-login-fields {
  width: 100%;
}

md-input-container.azbt-login-field {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-height: 56px;
  margin: 0 0 13px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--azbt-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  -webkit-transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

md-input-container.azbt-login-field:hover {
  border-color: rgba(255, 151, 0, 0.42);
  background: rgba(255, 255, 255, 0.055);
}

md-input-container.azbt-login-field.md-input-focused {
  border-color: var(--azbt-orange);
  background: rgba(255, 151, 0, 0.055);
  box-shadow: 0 0 0 3px rgba(255, 151, 0, 0.1);
}

.azbt-login-field md-icon {
  position: absolute;
  top: 16px;
  left: 17px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 22px;
}

.azbt-login-field input,
.azbt-login-field input.md-input {
  box-sizing: border-box !important;
  width: 100%;
  height: 55px !important;
  margin: 0 !important;
  padding: 0 58px 0 53px !important;
  border: 0 !important;
  color: #fff !important;
  background: transparent !important;
  font-size: 15px;
  line-height: 55px;
  caret-color: var(--azbt-orange);
}

.azbt-password-toggle {
  position: absolute !important;
  top: 50%;
  right: 7px;
  z-index: 4;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: #c4cdd5 !important;
  cursor: pointer;
  transform: translateY(-50%);
}

.azbt-password-toggle:hover,
.azbt-password-toggle:focus {
  color: var(--azbt-orange) !important;
  background-color: rgba(255, 151, 0, 0.1) !important;
}

.azbt-password-toggle md-icon,
.azbt-password-toggle svg {
  color: currentColor !important;
}

.azbt-password-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
}

.azbt-login-field input::placeholder {
  color: #aeb7c0;
  opacity: 1;
}

.azbt-field-placeholder {
  position: absolute;
  top: 18px;
  left: 53px;
  z-index: 1;
  color: #aeb7c0;
  font-size: 15px;
  line-height: 20px;
  pointer-events: none;
  -webkit-transition: opacity 120ms ease;
  transition: opacity 120ms ease;
}

.azbt-login-field input:focus ~ .azbt-field-placeholder,
.azbt-login-field input.ng-not-empty ~ .azbt-field-placeholder,
.azbt-login-field input:-webkit-autofill ~ .azbt-field-placeholder {
  opacity: 0;
}

.azbt-login-field input:-webkit-autofill,
.azbt-login-field input:-webkit-autofill:hover,
.azbt-login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 0 1000px #17212b inset !important;
  caret-color: #fff;
}

.azbt-login-field .md-errors-spacer {
  display: none;
  min-height: 0;
}

.azbt-language-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 60px;
  margin: 1px 0 3px;
  padding: 0 15px;
  border: 1px solid var(--azbt-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.azbt-language-row > md-icon {
  margin-right: 13px;
  color: rgba(255, 255, 255, 0.78) !important;
}

md-input-container.azbt-language-select {
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

.azbt-control-label {
  display: block;
  margin-bottom: -2px;
  color: #8895a2;
  font-size: 10px;
  line-height: 1;
}

.azbt-language-select md-select,
.azbt-language-select md-select .md-select-value,
.azbt-language-select md-select .md-select-value.md-select-placeholder {
  min-height: 30px;
  border-bottom: 0 !important;
  color: #fff !important;
  font-size: 14px;
}

.azbt-language-select .md-select-icon {
  color: var(--azbt-muted) !important;
}

.azbt-login-options {
  min-height: 48px;
}

.azbt-login-options md-switch {
  margin: 10px 0 8px;
  color: #dbe1e7 !important;
  font-size: 13px;
}

.azbt-login-options md-switch .md-label {
  color: #dbe1e7 !important;
}

.azbt-login-options md-switch.md-checked .md-thumb {
  background-color: var(--azbt-orange) !important;
}

.azbt-login-options md-switch.md-checked .md-bar {
  background-color: rgba(255, 151, 0, 0.5) !important;
}

.azbt-login-actions {
  gap: 12px;
  margin-top: 4px;
}

.azbt-login-actions .md-button {
  min-height: 46px;
  margin: 0;
  border-radius: 8px;
  font-weight: 600;
  text-transform: none;
}

.azbt-about-button {
  padding: 0 10px !important;
  color: var(--azbt-muted) !important;
}

.azbt-about-button md-icon {
  margin-right: 5px;
  color: var(--azbt-muted) !important;
}

.azbt-login-button {
  min-width: 178px;
  padding: 0 18px !important;
  color: #17120a !important;
  background: linear-gradient(135deg, #ffad25, var(--azbt-orange)) !important;
  box-shadow: 0 9px 24px rgba(255, 151, 0, 0.25) !important;
  transition: box-shadow 180ms ease, filter 180ms ease !important;
}

#login .azbt-login-button:hover {
  cursor: pointer !important;
  background: linear-gradient(135deg, #ffd078, #ffad25) !important;
  box-shadow: 0 0 0 2px rgba(255, 208, 120, 0.8),
              0 0 22px rgba(255, 166, 24, 0.55),
              0 10px 30px rgba(255, 151, 0, 0.4) !important;
}

#login .azbt-login-button:not([disabled]):hover md-icon {
  transform: translateX(3px);
}

/* Keep keyboard focus separate so older browsers still parse the hover rule. */
#login .azbt-login-button:not([disabled]):focus-visible {
  background: linear-gradient(135deg, #ffd078, #ffad25) !important;
  box-shadow: 0 0 0 2px rgba(255, 208, 120, 0.8),
              0 0 22px rgba(255, 166, 24, 0.55),
              0 10px 30px rgba(255, 151, 0, 0.4) !important;
}

.azbt-login-button[disabled] {
  color: #d8dde1 !important;
  background: #525b63 !important;
  box-shadow: none !important;
}

/* A disabled form still gives hover feedback, while retaining its grey state. */
#login .azbt-login-button[disabled]:hover {
  background: #68737d !important;
  color: #fff !important;
}

.azbt-login-button md-icon {
  margin-left: 10px;
  color: currentColor !important;
  transition: transform 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .azbt-login-button,
  .azbt-login-button md-icon {
    transition: none !important;
  }
  #login .azbt-login-button:not([disabled]):hover md-icon {
    transform: none;
  }
}

.azbt-login-footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin-top: clamp(20px, 3vh, 34px);
  padding-top: 16px;
  border-top: 1px solid var(--azbt-line);
  color: var(--azbt-muted);
  font-size: 11px;
  line-height: 1.65;
}

.azbt-login-footer strong {
  color: var(--azbt-orange);
  font-size: 12px;
}

.azbt-login-footer small {
  margin-top: 4px;
  color: #98a4af;
}

/* SOGo state overlays (authentication, errors and password change). */
.azbt-login-panel sg-ripple {
  background: linear-gradient(145deg, #151e27, #0d141b) !important;
}

.azbt-login-panel sg-ripple.md-warn {
  background:
    radial-gradient(circle at 50% 18%, rgba(198, 40, 40, 0.16), transparent 34%),
    linear-gradient(145deg, #151e27, #0d141b) !important;
}

.azbt-login-panel sg-ripple-content {
  box-sizing: border-box;
  height: 100% !important;
  color: var(--azbt-text) !important;
}

.azbt-login-panel sg-ripple-content .md-fg,
.azbt-login-panel sg-ripple-content md-icon {
  color: var(--azbt-text) !important;
}

.azbt-login-panel sg-ripple-content > div:not(.azbt-password-expired) {
  padding: 28px;
  text-align: center;
}

.azbt-login-panel sg-ripple-content .md-button {
  border-radius: 8px;
  color: var(--azbt-orange) !important;
  font-weight: 600;
}

.azbt-login-panel sg-ripple-content md-progress-circular path {
  stroke: var(--azbt-orange) !important;
}

.azbt-state {
  box-sizing: border-box;
  width: min(410px, calc(100% - 44px));
  min-height: 360px;
  margin: auto;
  padding: 34px !important;
  border: 1px solid var(--azbt-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.azbt-state-icon {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 23px;
  border: 1px solid rgba(255, 151, 0, 0.48);
  border-radius: 50%;
  background: rgba(255, 151, 0, 0.1);
}

.azbt-state-icon md-icon {
  width: 34px;
  height: 34px;
  color: var(--azbt-orange) !important;
  font-size: 34px;
  line-height: 34px;
}

.azbt-state-error .azbt-state-icon {
  border-color: rgba(229, 81, 72, 0.58);
  background: rgba(198, 40, 40, 0.12);
}

.azbt-state-error .azbt-state-icon md-icon {
  color: #ef6b62 !important;
}

.azbt-state-kicker {
  color: var(--azbt-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.azbt-state h2 {
  margin: 9px 0 12px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.azbt-state-message {
  color: #aeb8c2 !important;
  font-size: 14px;
  line-height: 1.5;
}

.azbt-state-button {
  min-width: 170px;
  min-height: 44px;
  margin-top: 26px !important;
  color: #17120a !important;
  background: linear-gradient(135deg, #ffad25, var(--azbt-orange)) !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.azbt-login-panel sg-ripple-content .md-button.azbt-state-button {
  color: #17120a !important;
}

.azbt-state-progress md-progress-circular {
  margin-bottom: 26px;
}

/* Password requirements shown both on login and in Preferences. */
.azbt-password-policy {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 16px;
  padding: 15px 18px;
  border: 1px solid #d9dee3;
  border-left: 4px solid var(--azbt-orange);
  border-radius: 8px;
  background: #f8fafc;
  color: #303840;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.azbt-password-policy-title {
  margin-bottom: 7px;
  color: #18212a;
  font-weight: 700;
}

.azbt-password-policy ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.azbt-password-policy li {
  margin: 4px 0;
  color: #56616b;
}

.azbt-password-policy .azbt-rule-symbol {
  display: inline-block;
  width: 18px;
  font-weight: 800;
}

.azbt-password-policy .azbt-rule-ok {
  color: var(--azbt-success);
}

.azbt-password-policy .azbt-rule-error {
  color: #b42318;
}

.azbt-password-note {
  margin-top: 9px;
  color: #65717c;
  font-size: 13px;
}

.azbt-expired-warning {
  box-sizing: border-box;
  width: 100%;
  margin: 5px 0 12px;
  padding: 13px 17px;
  border: 1px solid #e45247;
  border-left: 4px solid var(--azbt-danger);
  border-radius: 8px;
  background: #fff3f2;
  color: #8c1d18;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

/* SOGo sizes the ordinary login card for a short form and clips overflow.
   Password-change and helper screens need the full card height. */
#loginContent.azbt-password-screen,
#loginContent.azbt-helper-message-screen {
  box-sizing: border-box;
  -webkit-box-flex: 0 !important;
  -webkit-flex: 0 1 auto !important;
  flex: 0 1 auto !important;
  width: min(1240px, calc(100vw - clamp(24px, 4.2vw, 64px)));
  height: min(820px, calc(100vh - clamp(24px, 4.2vw, 64px))) !important;
  min-height: 540px !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#loginContent.azbt-password-screen .sg-logo,
#loginContent.azbt-helper-message-screen .sg-logo {
  display: none !important;
}

#loginContent.azbt-password-screen .sg-login,
#loginContent.azbt-helper-message-screen .sg-login {
  -webkit-box-flex: 1 !important;
  -webkit-flex: 1 1 auto !important;
  flex: 1 1 auto !important;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  max-width: 100% !important;
  max-height: none !important;
}

#loginContent.azbt-password-screen .sg-login-content,
#loginContent.azbt-helper-message-screen .sg-login-content {
  box-sizing: border-box;
  position: relative;
  width: 100% !important;
  min-height: 100%;
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: 22px 32px !important;
}

#loginContent.azbt-password-screen sg-ripple-content,
#loginContent.azbt-helper-message-screen sg-ripple-content {
  -webkit-box-pack: start !important;
  -webkit-justify-content: flex-start !important;
  justify-content: flex-start !important;
  -webkit-box-align: stretch !important;
  -webkit-align-items: stretch !important;
  align-items: stretch !important;
  background:
    radial-gradient(circle at 0 0, rgba(255, 151, 0, 0.1), transparent 28%),
    linear-gradient(145deg, #151e27, #0d141b) !important;
}

#loginContent.azbt-helper-message-screen .azbt-state-success {
  width: min(720px, calc(100% - 44px));
  min-height: 0;
}

.azbt-password-expired {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px 16px;
  color: var(--azbt-text);
}

.azbt-password-expired > md-icon {
  color: var(--azbt-orange) !important;
}

.azbt-password-expired > .md-fg {
  max-width: 880px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.azbt-password-expired md-input-container {
  position: relative;
  margin: 8px 10px;
}

.azbt-password-expired md-input-container label {
  color: #aeb9c4 !important;
}

.azbt-password-expired md-input-container input {
  box-sizing: border-box;
  padding-right: 48px !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  caret-color: var(--azbt-orange);
}

.azbt-password-expired .azbt-password-toggle {
  top: 32px;
  right: 0;
}

.azbt-password-expired md-input-container.md-input-focused label {
  color: var(--azbt-orange) !important;
}

.azbt-password-expired md-input-container.md-input-focused input {
  border-color: var(--azbt-orange) !important;
}

.azbt-password-actions {
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
  padding: 9px;
  border: 1px solid var(--azbt-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.azbt-change-password-button {
  min-width: 240px;
  min-height: 45px;
  border-radius: 8px !important;
  color: #17120a !important;
  background: linear-gradient(135deg, #ffad25, var(--azbt-orange)) !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.azbt-change-password-button[disabled] {
  color: #82878b !important;
  background: #323b44 !important;
}

.azbt-windows-helper {
  box-sizing: border-box;
  width: 100%;
  max-width: 620px;
  margin: 12px auto 4px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 151, 0, 0.55);
  border-left: 4px solid var(--azbt-orange);
  border-radius: 9px;
  background: rgba(255, 151, 0, 0.08);
  color: #eef2f5;
  line-height: 1.5;
  text-align: center;
}

.azbt-windows-helper strong,
.azbt-windows-helper span {
  display: block;
  margin-bottom: 7px;
}

.azbt-windows-helper .md-button {
  color: #17120a !important;
  background: var(--azbt-orange) !important;
}

@media (min-width: 960px) {
  #loginContent {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: row !important;
    flex-direction: row !important;
  }

  #loginContent > .azbt-hero {
    -webkit-box-flex: 0 !important;
    -webkit-flex: 0 0 58% !important;
    flex: 0 0 58% !important;
    width: 58% !important;
    max-width: 58% !important;
  }

  #loginContent > .azbt-login-panel {
    -webkit-box-flex: 0 !important;
    -webkit-flex: 0 0 42% !important;
    flex: 0 0 42% !important;
    width: 42% !important;
    max-width: 42% !important;
  }
}

@media (max-width: 1180px) and (min-width: 960px) {
  .azbt-hero-message h2 {
    font-size: 34px;
  }

  .azbt-hero-features > div:nth-child(3) {
    display: none;
  }

  #login.sg-login-content {
    padding-right: 32px !important;
    padding-left: 32px !important;
  }

  .azbt-login-brand {
    margin-bottom: 24px;
  }
}

@media (max-height: 720px) and (min-width: 960px) {
  #loginContent {
    min-height: 520px;
  }

  .azbt-hero-content {
    padding: 25px 32px;
  }

  .azbt-sivam-lockup {
    width: 220px;
    padding: 9px 13px 11px;
  }

  .azbt-sivam-lockup img {
    max-height: 66px;
  }

  .azbt-hero-company,
  .azbt-hero-tagline {
    display: none;
  }

  .azbt-hero-message {
    padding: 14px 0;
  }

  .azbt-hero-message h2 {
    font-size: 31px;
  }

  #login.sg-login-content {
    padding-top: 24px !important;
    padding-bottom: 22px !important;
  }

  .azbt-login-brand {
    margin-bottom: 17px;
  }

  .azbt-login-heading {
    margin-bottom: 13px;
  }

  .azbt-login-heading p {
    display: none;
  }

  md-input-container.azbt-login-field {
    min-height: 51px;
    margin-bottom: 9px !important;
  }

  .azbt-login-field input,
  .azbt-login-field input.md-input {
    height: 50px !important;
    line-height: 50px;
  }

  .azbt-login-field md-icon {
    top: 13px;
  }

  .azbt-language-row {
    min-height: 53px;
  }

  .azbt-login-options {
    min-height: 40px;
  }

  .azbt-login-options md-switch {
    margin: 5px 0;
  }

  .azbt-login-footer {
    margin-top: 14px;
    padding-top: 10px;
    line-height: 1.45;
  }
}

@media (max-width: 959px) {
  .azbt-webmail-shell {
    padding: 14px;
    overflow-y: auto;
  }

  #loginContent {
    display: block !important;
    width: min(720px, calc(100vw - 28px));
    height: auto;
    min-height: calc(100vh - 28px);
    overflow-y: auto;
  }

  #loginContent > .azbt-hero {
    width: 100% !important;
    max-width: none !important;
    min-height: 230px;
    height: 230px;
    background-position: center 43%;
  }

  .azbt-hero-content {
    padding: 22px 28px;
  }

  .azbt-sivam-lockup {
    width: 210px;
    padding: 8px 12px 10px;
  }

  .azbt-sivam-lockup img {
    max-height: 64px;
  }

  .azbt-hero-company,
  .azbt-hero-tagline,
  .azbt-hero-message p,
  .azbt-hero-features {
    display: none;
  }

  .azbt-hero-message {
    padding: 0;
  }

  .azbt-hero-message h2 {
    margin-bottom: 0;
    font-size: 27px;
  }

  #loginContent > .azbt-login-panel {
    width: 100% !important;
    max-width: none !important;
    min-height: 600px;
  }

  #login.sg-login-content {
    max-width: 590px !important;
  }

  #loginContent.azbt-password-screen,
  #loginContent.azbt-helper-message-screen {
    width: calc(100vw - 28px);
    height: calc(100vh - 28px) !important;
  }
}

@media (max-width: 620px) {
  .azbt-webmail-shell {
    padding: 0;
  }

  #loginContent,
  #loginContent.azbt-password-screen,
  #loginContent.azbt-helper-message-screen {
    width: 100vw;
    min-height: 100vh !important;
    height: auto !important;
    border: 0;
    border-radius: 0;
  }

  #loginContent > .azbt-hero {
    display: none;
  }

  #loginContent > .azbt-login-panel {
    min-height: 100vh;
  }

  #loginContent.azbt-password-screen > .azbt-login-panel,
  #loginContent.azbt-helper-message-screen > .azbt-login-panel,
  #loginContent.azbt-password-screen #login,
  #loginContent.azbt-helper-message-screen #login {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible;
  }

  #loginContent.azbt-password-screen .azbt-login-form,
  #loginContent.azbt-helper-message-screen .azbt-login-form {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    height: auto !important;
    min-height: calc(100vh - 52px) !important;
  }

  #loginContent.azbt-password-screen sg-ripple-content,
  #loginContent.azbt-helper-message-screen sg-ripple-content {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 52px) !important;
  }

  #login.sg-login-content,
  #loginContent.azbt-password-screen .sg-login-content,
  #loginContent.azbt-helper-message-screen .sg-login-content {
    padding: 26px 20px !important;
  }

  .azbt-login-brand {
    margin-bottom: 28px;
  }

  .azbt-brand-name strong {
    font-size: 16px;
  }

  .azbt-brand-name small {
    font-size: 8px;
  }

  .azbt-login-actions {
    -webkit-box-orient: vertical-reverse;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column-reverse;
    flex-direction: column-reverse;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
  }

  .azbt-login-button,
  .azbt-about-button {
    width: 100%;
  }

  .azbt-password-expired > div[layout="row"] {
    display: block;
  }

  .azbt-password-expired md-input-container {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}
