/*
 * ctas.css — CDPPartner | CertThorAdvanceSecurity
 * =====================================================================
 * Build-up, arrangement and operating concept follow the reference
 * https://cdpcontrol.com/ctas/login.php. Branded for CDPPartner.
 *
 * Colours: CTAS is exempt from the backend colour rule and follows the
 * colours of the reference - #131b25 and #1c2434 as surfaces, #2d3340
 * as the line, #e6eaeb for text, #9aa3ad for hints and #3bd671 as the
 * accent for icons, links and the button.
 * Untouched by that, the backend keeps #15224e on a light and #ffffff
 * on a dark background (see cdppartner.css).
 *
 * Flatstyle stays globally binding: 90 degrees, no rounding.
 * Whole pixels, no rem.
 */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 35%, rgba(59, 214, 113, 0.08), transparent 400px),
    linear-gradient(145deg, #131b25, #1c2434);
  color: #e6eaeb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Flatstyle, also against the defaults of the browser. */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

/*
 * The reference locks the page to 100vh without scrolling. The setup
 * page of the second stage is longer than one screen (secret, address
 * for the app, ten recovery codes). Hence min-height instead of
 * height - otherwise codes would be out of reach. On the sign-in page
 * that changes nothing visible.
 */
.ctas {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.ctas-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
}

/*
 * The wider card. For a form with many fields - the partner application
 * - the same card is allowed more room. Not a second layout: only this
 * one measurement differs, and on a phone nothing differs at all.
 */
.ctas-inner--wide {
  max-width: 720px;
}

/* ----------------------------------------------------- Language switch */
/*
 * Sits in the top right of the card head, where the panel has it. Flat,
 * square, two links and a divider - no control, nothing to unfold.
 */
.ctas-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}

.ctas-lang__item {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid transparent;
  color: #9aa3ad;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.ctas-lang__item:hover {
  color: #e6eaeb;
  border-color: #2d3340;
}

.ctas-lang__item--active {
  color: #131b25;
  background: #3bd671;
  border-color: #3bd671;
}

.ctas-intro {
  text-align: center;
  margin: 0 0 8px;
}

.ctas-logo {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 8px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.ctas-intro h1 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #e6eaeb;
}

.ctas-card {
  box-sizing: border-box;
  background: #1c2434;
  border: 1px solid #2d3340;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 14px 20px;
}

.ctas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.ctas-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: #e6eaeb;
}

.ctas-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  color: #e6eaeb;
}

.ctas-err {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #3a1c22;
  border: 1px solid #8a2b38;
  color: #ffd0d4;
  font-size: 14px;
  line-height: 20px;
}

.ctas-ok {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #16351f;
  border: 1px solid #2d6a3d;
  color: #c8f0d4;
  font-size: 14px;
  line-height: 20px;
}

.ctas-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: #e6eaeb;
}

.ctas-field {
  display: flex;
  align-items: center;
  margin: 0 0 8px;
  border: 1px solid #2d3340;
  background: #131b25;
}

.ctas-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #3bd671;
  flex-shrink: 0;
}

.ctas-field input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: #e6eaeb;
  font-size: 15px;
  line-height: 20px;
  padding: 0 12px;
  outline: none;
}

.ctas-field input:-webkit-autofill,
.ctas-field input:-webkit-autofill:hover,
.ctas-field input:-webkit-autofill:focus,
.ctas-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #e6eaeb;
  -webkit-box-shadow: 0 0 0 1000px #131b25 inset;
  box-shadow: 0 0 0 1000px #131b25 inset;
  caret-color: #e6eaeb;
  transition: background-color 9999s ease-in-out 0s;
}

.ctas-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #3bd671;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.ctas-toggle:hover,
.ctas-toggle[aria-pressed="true"] {
  color: #32c264;
}

.ctas-submit {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 0;
  background: #3bd671;
  color: #131b25;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 10px 12px;
  cursor: pointer;
  box-sizing: border-box;
}

.ctas-submit:hover {
  background: #32c264;
  color: #131b25;
}

.ctas-submit--link {
  display: block;
}

.ctas-forgot {
  margin: -2px 0 8px;
  text-align: right;
}

.ctas-forgot a {
  color: #3bd671;
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
}

.ctas-forgot a:hover {
  text-decoration: underline;
}

.ctas-hint {
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 18px;
  color: #9aa3ad;
}

.ctas-legal {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: #9aa3ad;
}

/* ------------------------------------------------------------- QR code */
/*
 * The picture is the way in, so it gets room. White plate underneath:
 * a scanner needs the contrast, and the dark surface of CTAS would
 * eat it.
 */
.ctas-qr {
  margin: 0 0 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #2d3340;
  text-align: center;
}

.ctas-qr svg {
  display: block;
  /*
   * Its own size, not the width of the container. The code is drawn on
   * a whole module grid; stretching it would put module edges between
   * pixels. It only ever shrinks, and only when the screen is
   * narrower than the code itself.
   */
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  image-rendering: pixelated;
}

.ctas-qr__caption {
  margin: 8px 0 0;
  color: #131b25;
  font-size: 13px;
  line-height: 18px;
}

/* The key stays reachable, but it is not what one is meant to use. */
.ctas-fallback {
  margin: 0 0 12px;
  border: 1px solid #2d3340;
  padding: 8px 10px;
}

.ctas-fallback > summary {
  cursor: pointer;
  color: #9aa3ad;
  font-size: 13px;
  list-style: none;
}

.ctas-fallback > summary::-webkit-details-marker {
  display: none;
}

.ctas-fallback > summary:hover {
  color: #e6eaeb;
}

.ctas-fallback[open] > summary {
  margin: 0 0 8px;
  border-bottom: 1px solid #2d3340;
  padding: 0 0 8px;
}

@media (max-width: 480px) {
  .ctas-qr {
    padding: 8px;
  }

  .ctas-qr svg {
    max-width: 100%;
  }
}

/* ------------------------------------------- Second stage enrolment */
.ctas-secret {
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid #2d3340;
  background: #131b25;
  color: #e6eaeb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 2px;
  text-align: center;
  word-break: break-all;
}

.ctas-uri {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #2d3340;
  background: #131b25;
  color: #9aa3ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 18px;
  word-break: break-all;
}

.ctas-codes {
  margin: 0 0 12px;
  padding: 12px;
  list-style: none;
  border: 1px solid #2d3340;
  background: #131b25;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.ctas-codes li {
  color: #e6eaeb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 1px;
}

.ctas-cancel {
  margin: 12px 0 0;
  text-align: center;
}

.ctas-link {
  border: 0;
  background: transparent;
  color: #9aa3ad;
  font-size: 13px;
  line-height: 18px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.ctas-link:hover {
  color: #3bd671;
}

@media (max-width: 575px) {
  .ctas-logo {
    width: 140px;
    height: 140px;
  }

  .ctas-codes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------- Become a partner */
/* Sits beside the sign-in, deliberately set apart from it: the two
   have nothing to do with each other and only share a page. */
.ctas-partner {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--ctas-line, #2d3340);
}

.ctas-partner__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.ctas-partner__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 21px;
}

.ctas-partner__list {
  margin: 0 0 14px 18px;
  padding: 0;
  font-size: 14px;
  line-height: 22px;
}

/*
 * The same width and the same height as the button above it. There is
 * no global border-box here, so without box-sizing the border of this
 * one would make it two pixels wider than the submit button next to it.
 */
.ctas-partner__cta {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.ctas-partner__cta:hover,
.ctas-partner__cta:focus {
  background: var(--ctas-accent, #3bd671);
  border-color: var(--ctas-accent, #3bd671);
  color: #131b25;
}

/* =====================================================================
 * Form parts of the partner application
 * ---------------------------------------------------------------------
 * The application has more kinds of field than a sign-in: a text area,
 * selects, checkboxes and radio buttons. They are dressed in the same
 * colour world and the same flat 90 degrees as the fields above, so the
 * longer form stays the same design family and does not become a second
 * one.
 * ================================================================== */

.ctas-section {
  margin: 20px 0 10px;
  padding: 0 0 6px;
  border-bottom: 1px solid #2d3340;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #e6eaeb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ctas-section:first-of-type {
  margin-top: 4px;
}

/* A field without the icon column: text areas, selects, plain inputs. */
.ctas-input,
.ctas-textarea,
.ctas-select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0 0 8px;
  padding: 9px 12px;
  border: 1px solid #2d3340;
  background: #131b25;
  color: #e6eaeb;
  font-family: inherit;
  font-size: 15px;
  line-height: 20px;
  outline: none;
}

.ctas-textarea {
  min-height: 108px;
  resize: vertical;
}

.ctas-select {
  appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, #9aa3ad 50%),
                    linear-gradient(135deg, #9aa3ad 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ctas-input:focus,
.ctas-textarea:focus,
.ctas-select:focus,
.ctas-field:focus-within {
  border-color: #3bd671;
}

/* A field the server complained about. Marked, never only coloured. */
.ctas-input--error,
.ctas-textarea--error,
.ctas-choices--error {
  border-color: #8a2b38;
  background: #241419;
}

.ctas-small {
  display: block;
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 18px;
  color: #9aa3ad;
}

.ctas-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 21px;
  color: #9aa3ad;
}

/* Checkboxes and radio buttons. */
.ctas-choices {
  margin: 0 0 10px;
  padding: 2px 0;
}

.ctas-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 20px;
  color: #e6eaeb;
  cursor: pointer;
}

.ctas-choice input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #3bd671;
  flex-shrink: 0;
}

.ctas-choice small {
  display: block;
  color: #9aa3ad;
  font-size: 12px;
  line-height: 18px;
}

/* One reach channel: platform, handle, address. */
.ctas-channels {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.ctas-channels legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 18px;
  color: #9aa3ad;
}

.ctas-channel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 8px;
}

.ctas-channel > * {
  margin-bottom: 0;
  min-width: 0;
}

/* Two columns where two short fields belong side by side. */
.ctas-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
}

.ctas-row--narrow {
  grid-template-columns: 2fr 1fr;
}

/* The phone gets one column throughout - three fields beside each other
 * would be unusable at that width. */
@media (max-width: 640px) {
  .ctas-channel,
  .ctas-row,
  .ctas-row--narrow {
    grid-template-columns: 1fr;
  }
}

.ctas-steps {
  margin: 0 0 12px 18px;
  padding: 0;
  font-size: 14px;
  line-height: 22px;
  color: #e6eaeb;
}

/*
 * The honeypot. Out of sight and out of the tab order for a person,
 * still a perfectly ordinary field for something that reads the markup.
 * Not display:none - that is the one thing every bot checks for.
 */
.ctas-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/*
 * A legal text in the CTAS frame. Long prose, so it gets its own reading
 * size - the colour world and the flat edges stay as everywhere else.
 */
.ctas-legaltext {
  font-size: 15px;
  line-height: 24px;
  color: #e6eaeb;
}

.ctas-legaltext h1,
.ctas-legaltext h2,
.ctas-legaltext h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: #e6eaeb;
}

.ctas-legaltext h1:first-child,
.ctas-legaltext h2:first-child {
  margin-top: 0;
}

.ctas-legaltext p,
.ctas-legaltext li {
  margin: 0 0 12px;
  color: #c3ccd4;
}

.ctas-legaltext ul,
.ctas-legaltext ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.ctas-legaltext a {
  color: #3bd671;
}

/*
 * The two ways out of the sign-in, side by side on one line. On a phone
 * they stack rather than shrink into something unreadable - still flat,
 * still square.
 */
.ctas-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 18px;
}

.ctas-links a {
  color: #3bd671;
  text-decoration: none;
}

.ctas-links a:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .ctas-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* The version and copyright line below the card. */
.ctas-legal a {
  color: #9aa3ad;
  text-decoration: none;
}

.ctas-legal a:hover {
  color: #e6eaeb;
  text-decoration: underline;
}

/* 894: Wortmarke CDPCommerce (SHOP • SELL • SHIP) statt quadratischem Zeichen */
.ctas-logo.ctas-logo--wort {
  width: min(360px, 86vw);
  height: auto;
  aspect-ratio: 429 / 72;
}
