/*
 * login-ctas.css — CTPFDNS | CTAS Login (shared design)
 * =====================================================================
 * Project  : CTPFDNS Desk / CTPFDNS DNS Control by CTPF Certthor Platforms Ltd.
 * Author   : MikeGeorg / Senior Full-Stack Developer
 * Version  : 1.0.0 2026-08-27 CTAS login styles adapted from ControlDeskPanel, whole px only — by MikeGeorg
 * Layout   : core/assets/css/login-ctas.css
 * Infos    : C-Muster asset. No rem. Colors: #131b25 #1c2434 #2d3340 #3bd671 #e6eaeb
 */

/* No rounded corners anywhere — flat 90° design language, browser defaults included */
button, input, .ctas-card, .ctas-field, .ctas-lang-dd-btn, .ctas-lang-dd-menu, .ctas-err, .ctas-ok {
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  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;
}
.ctas {
  box-sizing: border-box;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}
.ctas-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  max-height: 100%;
}
.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-intro p.ctas-sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: #9aa3ad;
}
.ctas-card {
  box-sizing: border-box;
  background: #1c2434;
  border: 1px solid #2d3340;
  border-radius: 0;
  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 10px;
}
.ctas-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
}
.ctas-lang {
  margin: 0;
  display: flex;
  gap: 8px;
}
.ctas-lang a {
  color: #e6eaeb;
  text-decoration: none;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid #2d3340;
  background: #131b25;
}
.ctas-lang a[aria-current="true"] {
  color: #131b25;
  background: #3bd671;
  border-color: #3bd671;
}
/* Dropdown variant — used where more than 2 languages are offered */
.ctas-lang-dd {
  position: relative;
}
.ctas-lang-dd-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e6eaeb;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid #2d3340;
  background: #131b25;
  cursor: pointer;
}
.ctas-lang-dd-btn img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.ctas-lang-dd-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 140px;
  background: #1c2434;
  border: 1px solid #2d3340;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 10;
  padding: 4px;
}
.ctas-lang-dd.open .ctas-lang-dd-menu {
  display: block;
}
.ctas-lang-dd-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: #e6eaeb;
  text-decoration: none;
  font-size: 13px;
  line-height: 18px;
}
.ctas-lang-dd-menu a img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.ctas-lang-dd-menu a:hover,
.ctas-lang-dd-menu a.active {
  background: #131b25;
  color: #3bd671;
}
.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;
}
.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 0 12px;
  outline: none;
}
.ctas-field input:disabled {
  opacity: .5;
}
.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-forgot {
  margin: -2px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.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: 16px;
  color: #9aa3ad;
}
.ctas-submit {
  display: block;
  width: 100%;
  height: 40px;
  border: 0;
  background: #3bd671;
  color: #131b25;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
}
.ctas-submit:hover {
  background: #32c264;
}
.ctas-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.ctas-legal {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: #9aa3ad;
}
.ctas-legal a {
  color: #9aa3ad;
}
