/* Login and register presentation. Server controls and IDs are unchanged. */
body.cae-auth,
body.cae-auth *,
body.cae-auth *::before,
body.cae-auth *::after {
  box-sizing: border-box;
}

body.cae-auth {
  margin: 0;
  background: #f4f7fb;
  color: #16315c;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body.cae-auth #page,
body.cae-auth footer.footer-area,
body.cae-auth #scroll-top,
body.cae-auth .whatsapp-button {
  display: none !important;
}

body.cae-auth .cae-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(47, 111, 237, 0.07), transparent 26%),
    radial-gradient(circle at 92% 0%, rgba(255, 122, 26, 0.06), transparent 22%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

body.cae-auth .cae-page a {
  color: #2a62e4;
  text-decoration: none;
}

.cae-top,
.cae-shell,
.cae-disclaimer {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.cae-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.cae-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #163a86 !important;
}

.cae-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.cae-brand small {
  display: block;
  margin-top: 2px;
  color: #6d7c93;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.cae-top-action {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5d6d86;
  font-size: 14px;
}

.cae-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid #2f6bff;
  border-radius: 10px;
  background: #fff;
  color: #2457e6 !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.cae-outline-btn-block {
  width: 100%;
}

.cae-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 460px);
  gap: 42px;
  align-items: center;
  padding: 18px 0 28px;
}

.cae-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7efff;
  color: #2456d6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cae-hero h1 {
  margin: 0 0 12px;
  color: #16357a;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.cae-hero h1 span,
.cae-card h2 span {
  color: #ff6a00;
}

.cae-lede {
  max-width: 460px;
  margin: 0 0 22px;
  color: #5c6d86;
  font-size: 18px;
  line-height: 1.45;
}

.cae-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cae-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.cae-features strong,
.cae-features em {
  display: block;
  font-style: normal;
}

.cae-features strong {
  color: #1b3f86;
  font-size: 16px;
}

.cae-features em {
  color: #6b7b92;
  font-size: 14px;
}

.cae-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 42px;
}

.cae-ico-blue { background: #e7f0ff; color: #2f6fe6; }
.cae-ico-orange { background: #fff1e6; color: #ff7a1a; }
.cae-ico-green { background: #e5f8ee; color: #1f9d57; }

.cae-scene {
  margin-top: 18px;
  max-width: 520px;
}

.cae-scene svg {
  display: block;
  width: 100%;
  height: auto;
}

.cae-card {
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(22, 53, 122, 0.08);
  padding: 28px 26px 22px;
}

.cae-card h2,
.cae-alt h3 {
  margin: 0 0 6px;
  color: #173a86;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.cae-card-sub,
.cae-alt p {
  margin: 0 0 18px;
  color: #6a7b93;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.cae-field {
  position: relative;
  margin-bottom: 12px;
}

.cae-field-icon,
.cae-eye {
  position: absolute;
  top: 15px;
  display: flex;
  color: #8b9bb3;
}

.cae-field-icon { left: 14px; }
.cae-eye {
  right: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

body.cae-auth .cae-input,
body.cae-auth input.cae-input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 42px;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: #1c2b4a;
  font-family: inherit;
  font-size: 14px;
  line-height: 48px;
}

body.cae-auth .cae-input:focus {
  border-color: #2f6fe6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 111, 230, 0.15);
}

.cae-field > span[id] {
  display: block;
  margin-top: 4px;
  color: #c62828;
  font-size: 12px;
  line-height: 1.3;
}

.cae-field > span[id][style*="display:none"],
.cae-field > span[id][style*="display: none"],
.cae-field > span[id][style*="visibility:hidden"],
.cae-field > span[id][style*="visibility: hidden"] {
  display: none !important;
}

.cae-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px;
}

.cae-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 14px;
  color: #41556f;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.cae-inline .cae-check { margin: 0; }

.cae-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #2f6fe6;
  flex: 0 0 16px;
}

.cae-link {
  font-weight: 700;
  font-size: 13px;
}

body.cae-auth input.cae-btn,
body.cae-auth .cae-btn {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: #ff6a00;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

body.cae-auth input.cae-btn:hover,
body.cae-auth .cae-btn:hover,
body.cae-auth .cae-outline-btn:hover {
  filter: brightness(0.97);
}

.cae-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #8b9bb0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cae-or:before,
.cae-or:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e1e8f0;
}

.cae-alt {
  padding: 16px 14px 14px;
  border-radius: 12px;
  background: #f6f8fb;
  text-align: center;
}

.cae-alt h3 { font-size: 18px; }
.cae-alt p { margin-bottom: 12px; }

.cae-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #e8f8ee;
  color: #178a45;
  font-size: 13px;
  line-height: 1.4;
}

.cae-privacy strong { display: block; color: #12763a; }

.cae-captcha {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.cae-captcha .cae-input,
body.cae-auth .cae-captcha input.cae-input {
  padding-left: 14px;
  padding-right: 14px;
}

.cae-captcha img {
  width: 120px;
  height: 46px;
  object-fit: cover;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  background: #fff;
}

.cae-result {
  display: block;
  min-height: 0;
  margin-bottom: 8px;
  font-size: 12px;
}

.cae-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  color: #5d6e88;
  font-size: 13px;
  line-height: 1.45;
}

.cae-disclaimer strong { color: #1d4e9f; }

.cae-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2f6fe6;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 22px;
}

.cae-preserve {
  display: none !important;
}

@media (max-width: 900px) {
  .cae-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cae-hero h1 { font-size: 34px; }
  .cae-lede { font-size: 16px; }
  .cae-scene { display: none; }
  .cae-card h2 { font-size: 24px; }

  body.cae-auth-login .cae-hero { display: none; }
}

@media (max-width: 640px) {
  .cae-top,
  .cae-shell,
  .cae-disclaimer { width: min(100% - 28px, 1180px); }

  .cae-top { padding-top: 16px; }
  .cae-top-action span { display: none; }
  .cae-brand strong { font-size: 14px; }
  .cae-brand small { font-size: 11px; }
  .cae-card { padding: 22px 16px 16px; }
  .cae-inline { align-items: flex-start; }
  .cae-captcha { grid-template-columns: 1fr; }
}
