/* Kyappa platform — instance manager */
:root {
  --ph-green: #0284C7;
  --ph-green-deep: #01669b;
  --ph-forest: #015581;
  --ph-ink: #12241e;
  --ph-muted: #5d6b66;
  --ph-cream: #f4efe4;
  --ph-paper: #fffdf8;
  --ph-amber: #65A30D;
  --ph-line: rgba(18, 36, 30, 0.1);
}

body.kyappa-platform {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 520px at 100% -8%, rgba(2, 132, 199, 0.16), transparent 55%),
    radial-gradient(800px 420px at -12% 8%, rgba(101, 163, 13, 0.12), transparent 50%),
    var(--ph-cream);
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ph-ink);
}

.kyappa-shell { max-width: 1080px; margin: 0 auto; padding: 2.4rem 1.25rem 4rem; }
.kyappa-shell.narrow { max-width: 460px; padding-top: 4.2rem; }

.kyappa-hero { margin-bottom: 1.8rem; }
.kyappa-hero .kicker {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ph-green);
  font-size: .75rem;
  font-weight: 800;
  margin-bottom: .4rem;
}
.kyappa-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  margin: 0 0 .5rem;
  letter-spacing: -.03em;
}
.kyappa-hero p { color: var(--ph-muted); max-width: 40rem; line-height: 1.6; }

.kyappa-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.25rem; }
@media (max-width: 860px) { .kyappa-grid { grid-template-columns: 1fr; } }

.kyappa-card {
  background: var(--ph-paper);
  border: 1px solid var(--ph-line);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(18, 36, 30, .08);
  padding: 1.45rem 1.55rem;
}

.kyappa-card h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 .35rem;
}

.kyappa-card .lede { color: var(--ph-muted); margin-bottom: 1.1rem; }

.kyappa-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}
.kyappa-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.kyappa-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--ph-amber), #9ac361);
  color: #2a1c07;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
}
.kyappa-brand span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
}

.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0;
  border-top: 1px solid var(--ph-line);
}
.site-row:first-of-type { border-top: 0; }
.site-row h3 { margin: 0; font-size: 1.05rem; }
.site-row p { margin: .15rem 0 0; color: var(--ph-muted); font-size: .9rem; }

.kyappa-empty { color: var(--ph-muted); padding: .5rem 0 0; }
.kyappa-alert { border-radius: 14px; padding: .85rem 1rem; margin-bottom: 1rem; }
.kyappa-alert.ok { background: #e8f4ec; color: #1d4a2e; }
.kyappa-alert.err { background: #fdecea; color: #7a2218; }
.kyappa-alert code,
.kyappa-creds code { background: rgba(0,0,0,.06); padding: .1rem .35rem; border-radius: 6px; }

.kyappa-creds {
  background: #e8f3ee;
  color: #1d4a2e;
  border-radius: 14px;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  font-size: .92rem;
  line-height: 1.55;
}

.btn-kyappa {
  background: var(--ph-green);
  border-color: var(--ph-green);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  padding: .55rem 1.1rem;
}
.btn-kyappa:hover { background: var(--ph-green-deep); border-color: var(--ph-green-deep); color: #fff; }

.kyappa-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.kyappa-auth-visual {
  background:
    radial-gradient(700px 380px at 20% 10%, rgba(201, 137, 43, 0.22), transparent 55%),
    linear-gradient(165deg, #015581, #003b59 70%);
  color: #fff;
  padding: 3.2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kyappa-auth-visual h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: .4rem 0 1rem;
}
.kyappa-auth-visual p { color: rgba(255,255,255,.72); max-width: 28rem; }
.kyappa-auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.kyappa-auth-form .kyappa-card { width: min(420px, 100%); }

@media (max-width: 860px) {
  .kyappa-auth { grid-template-columns: 1fr; }
  .kyappa-auth-visual { min-height: 220px; padding: 1.8rem 1.4rem; }
}

.kyappa-meta { color: var(--ph-muted); font-size: .92rem; }
.kyappa-meta a { color: var(--ph-green); font-weight: 700; text-decoration: none; }
.kyappa-meta a:hover { text-decoration: underline; }

body.kyappa-platform .form-control {
  border-radius: 12px;
  border-color: rgba(18, 36, 30, 0.14);
  min-height: 42px;
}
body.kyappa-platform .form-control:focus {
  border-color: var(--ph-green);
  box-shadow: 0 0 0 .2rem rgba(13, 107, 92, .16);
}

/* IPLINK brand palette override */
.btn-primary, .platform-btn, button[type=submit] { background: #0284C7 !important; border-color: #0284C7 !important; }
.btn-primary:hover { background: #016ca3 !important; }

/* === IPLINK TWO-COLOR LOCK START === */
:root {
  --iplink-primary: #0284C7;
  --iplink-primary-deep: #016CA3;
  --iplink-secondary: #65A30D;
  --iplink-secondary-deep: #568C0B;
  --iplink-ink: #111111;
  --iplink-cream: #F7F1E6;
  --iplink-white: #ffffff;
}
.btn-primary, .btn-success, .btn-info, .btn-login,
button[type=submit].btn, .btn-primary:not(:disabled):not(.disabled) {
  background: #0284C7 !important;
  border-color: #0284C7 !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-success:hover, .btn-info:hover, .btn-login:hover {
  background: #016CA3 !important;
  border-color: #016CA3 !important;
  color: #fff !important;
}
.btn-warning, .badge-warning, .bg-warning, .badge.bg-warning {
  background: #65A30D !important;
  border-color: #65A30D !important;
  color: #111 !important;
}
.btn-danger, .badge-danger, .bg-danger, .badge.bg-danger {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #fff !important;
}
.btn-danger:hover {
  background: #000000 !important;
  border-color: #000000 !important;
}
.text-primary, .text-info, .text-success { color: #0284C7 !important; }
.text-warning { color: #568C0B !important; }
.text-danger { color: #111111 !important; }
.bg-primary, .bg-info, .bg-success,
.badge-primary, .badge-info, .badge-success,
.badge.bg-primary, .badge.bg-info, .badge.bg-success {
  background: #0284C7 !important;
  color: #fff !important;
}
.alert-success, .alert-info {
  background: #fff !important;
  color: #111 !important;
  border-color: #0284C7 !important;
}
.alert-warning {
  background: #F7F1E6 !important;
  color: #111 !important;
  border-color: #65A30D !important;
}
.alert-danger {
  background: #F7F1E6 !important;
  color: #111 !important;
  border-color: #111111 !important;
}
.progress-bar { background-color: #0284C7 !important; }
.nav-pills .nav-link.active,
.page-item.active .page-link,
.dropdown-item.active,
.dropdown-item:active {
  background-color: #0284C7 !important;
  border-color: #0284C7 !important;
  color: #fff !important;
}
.form-control:focus, .form-select:focus, .inp:focus {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 0.15rem rgba(2, 132, 199, 0.18) !important;
}
.custom-control-input:checked ~ .custom-control-label::before,
.form-check-input:checked {
  background-color: #0284C7 !important;
  border-color: #0284C7 !important;
}
.form-check-input { accent-color: #0284C7; }
[style*="color:blue"], [style*="color: blue"] { color: #0284C7 !important; }
[style*="color:green"], [style*="color: green"] { color: #65A30D !important; }
[style*="color:red"], [style*="color: red"] { color: #111111 !important; }
.err, .kabox-alert.err, .qulider-alert.err {
  background: #F7F1E6 !important;
  color: #111 !important;
  border: 1px solid #111111 !important;
}
.creds, .kabox-creds, .demo-info, .qulider-creds {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #111 !important;
  border: 1px solid rgba(2, 132, 199, 0.18) !important;
}
/* === IPLINK TWO-COLOR LOCK END === */
