/* Mailtics sign-in pages (login, 2FA, forgot / reset password, first-time setup).
   Layered over the public style.css; the forms themselves are unchanged.
   Two halves in a wrapping row: the form on white (left), a dark panel (right). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("figtree.woff2") format("woff2");
}

body.auth {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #1a1b1e;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.auth *, body.auth *::before, body.auth *::after {
  box-shadow: none !important;
}

.auth-shell {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

/* Left: the form. */
.auth-main {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
  background: #ffffff;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  margin: auto 0;
}

.auth-brand {
  margin-bottom: 36px;
}

.auth-brand img {
  display: block;
  height: 34px;
  width: auto;
}

.auth-foot {
  margin: 32px 0 0;
  font-size: 13px;
  color: #5c6066;
}

.auth-foot a {
  color: #5c6066;
  font-weight: 500;
}

.auth .login {
  margin: 0;
  padding: 0;
  background: none;
}

.auth .login h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #1a1b1e;
}

.auth .login > p:not(.center) {
  margin: 0 0 8px;
  color: #5c6066;
}

.auth .login form {
  margin-top: 24px;
}

.auth .login label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1b1e;
}

.auth .login p {
  margin: 0 0 16px;
}

.auth input[type="text"], .auth input[type="email"], .auth input[type="password"], .auth select {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  color: #1a1b1e;
  transition: border-color 0.15s ease;
}

.auth input:hover {
  border-color: #b9bcc1;
}

.auth input:focus {
  outline: 1px solid #149457;
  outline-offset: -1px;
  border-color: #149457;
}

.auth .login input[name=totp_code] {
  height: 56px;
}

/* Password field with the show / hide button joined to it. */
.auth-password {
  display: flex;
}

.auth .auth-password input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.auth .auth-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 42px;
  margin-left: -1px;
  padding: 0;
  border: 1px solid #d5d7da;
  border-radius: 0 8px 8px 0;
  background: #ffffff;
  color: #5c6066;
  cursor: pointer;
}

.auth .auth-eye:hover {
  background: #f7f8f7;
  color: #1a1b1e;
}

.auth .auth-eye[aria-pressed="true"] {
  color: #1a1b1e;
}

.auth .login p.auth-forgot {
  margin: -4px 0 20px;
  font-size: 13.5px;
}

.auth .button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #17181a;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.auth .button:hover {
  background: #2c2e31;
}

.auth .button.button-outline {
  background: #ffffff;
  color: #1a1b1e;
  border: 1px solid #d5d7da;
}

.auth .button.button-outline:hover {
  background: #f7f8f7;
}

.auth a {
  color: #0b6b43;
  font-weight: 600;
  text-decoration: none;
}

.auth a:hover {
  color: #06502f;
  text-decoration: underline;
}

.auth a:focus-visible, .auth button:focus-visible, .auth input:focus-visible {
  outline: 2px solid #149457;
  outline-offset: 2px;
}

.auth .error {
  display: block;
  padding: 10px 12px;
  border: 1px solid #f4c3c3;
  border-radius: 8px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 13.5px;
}

.auth .center.small {
  margin-top: 22px;
  text-align: center;
}

/* Right: dark panel with the pitch and a decorative mini dashboard. */
.auth-side {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 56px 64px;
  background: #0d0f0e;
  color: #b7bcb9;
}

.auth-pitch {
  max-width: 600px;
}

.auth-eyebrow {
  margin: 0 0 18px;
  color: #5fd69a;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.auth-pitch h1 {
  margin: 0 0 18px;
  font-size: 52px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: #ffffff;
}

.auth-pitch h1 em {
  font-style: normal;
  color: #5fd69a;
}

.auth-pitch p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #b7bcb9;
}

.auth-mock {
  max-width: 560px;
  padding: 14px;
  border-radius: 16px;
  background: #2a2d2b;
}

.auth-mock-card {
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
}

.auth-mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-mock-stats div {
  padding: 10px 12px;
  border: 1px solid #e4e5e7;
  border-radius: 8px;
}

.auth-mock-stats span {
  display: block;
  color: #5c6066;
  font-size: 11px;
}

.auth-mock-stats strong {
  display: block;
  margin-top: 2px;
  color: #1a1b1e;
  font-size: 18px;
  font-weight: 700;
}

.auth-mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  margin-top: 16px;
  padding: 0 4px;
  border-bottom: 1px solid #e4e5e7;
}

.auth-mock-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #149457;
}

@media (max-width: 960px) {
  .auth-side {
    padding: 40px 28px;
    gap: 32px;
  }

  .auth-pitch h1 {
    font-size: 36px;
  }

  .auth-mock {
    display: none;
  }
}
