:root {
  --mkik-pink: #f86ec3;
  --mkik-lime: #d5ff2f;
  --mkik-blue: #2c75ff;
  --mkik-ink: #111111;
  --mkik-muted: #696969;
  --mkik-line: rgba(17, 17, 17, 0.14);
  --mkik-panel: rgba(255, 255, 255, 0.94);
  --mkik-shadow: 0 28px 70px rgba(17, 17, 17, 0.18);
}

* { box-sizing: border-box; }

body.mkik-auth-body {
  min-height: 100vh;
  margin: 0;
  color: var(--mkik-ink);
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(248, 110, 195, 0.24), transparent 27%),
    radial-gradient(circle at 88% 12%, rgba(44, 117, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 86%, rgba(213, 255, 47, 0.28), transparent 24%),
    #f7f8fb;
}

.mkik-auth-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.mkik-auth-topbar, .mkik-auth-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.mkik-auth-topbar { padding: 28px 0 18px; }
.mkik-auth-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--mkik-ink); text-decoration: none; }
.mkik-auth-logo { width: 112px; height: auto; display: block; }
.mkik-auth-brand-text { max-width: 270px; font-size: 13px; line-height: 1.35; font-weight: 500; }
.mkik-auth-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; place-items: center; padding: 18px 0 42px; }

.mkik-auth-card {
  position: relative;
  width: min(100%, 560px);
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--mkik-line);
  border-radius: 8px;
  background: var(--mkik-panel);
  box-shadow: var(--mkik-shadow);
}

.mkik-auth-card-forgot { width: min(100%, 500px); }
.mkik-auth-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, var(--mkik-pink), var(--mkik-blue), var(--mkik-lime)); }
.mkik-auth-title { margin: 0 0 10px; font-size: clamp(30px, 5vw, 44px); line-height: 1; font-weight: 900; }
.mkik-auth-subtitle { margin: 0 0 28px; color: var(--mkik-muted); font-size: 15px; line-height: 1.5; }
.mkik-auth-form { display: grid; gap: 18px; }
.mkik-auth-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mkik-auth-phone-grid { display: grid; grid-template-columns: minmax(86px, 0.36fr) 1fr; gap: 12px; }
.mkik-auth-field { display: grid; gap: 8px; }
.mkik-auth-label { font-size: 13px; line-height: 1.25; font-weight: 700; }
.mkik-auth-required { color: #d71978; }

.mkik-auth-control {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--mkik-line);
  border-radius: 8px;
  color: var(--mkik-ink);
  background: #ffffff;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mkik-auth-control:focus { border-color: var(--mkik-blue); box-shadow: 0 0 0 4px rgba(44, 117, 255, 0.14); }
.mkik-auth-password { position: relative; }
.mkik-auth-password .mkik-auth-control { padding-right: 44px; }
.mkik-auth-password .pass-show { position: absolute; right: 14px; bottom: 15px; z-index: 2; color: var(--mkik-muted); cursor: pointer; }
.mkik-auth-note, .tooltip-password { color: var(--mkik-muted); font-size: 13px; line-height: 1.45; }
.tooltip-password { display: none; margin-top: -4px; }
.tooltip-password:not(.d-none) { display: block; }

.mkik-auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--mkik-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--mkik-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mkik-auth-consent input { width: 18px; min-width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mkik-blue); }
.mkik-auth-actions { display: grid; gap: 14px; margin-top: 6px; }
.mkik-auth-btn { width: 100%; min-height: 54px; border: 0; border-radius: 8px; color: #ffffff; background: var(--mkik-ink); font: inherit; font-weight: 900; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease; }
.mkik-auth-btn:hover:not(:disabled), .mkik-auth-btn:focus-visible:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(17, 17, 17, 0.18); }
.mkik-auth-btn:disabled { cursor: default; opacity: 0.46; }
.mkik-auth-link { color: var(--mkik-blue); font-weight: 800; text-decoration: none; }
.mkik-auth-link:hover, .mkik-auth-link:focus-visible { color: #1558cc; text-decoration: underline; }
.mkik-auth-below-form { margin: 0; text-align: center; color: var(--mkik-muted); font-size: 14px; }
.mkik-auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0 28px; color: var(--mkik-muted); font-size: 13px; }
.mkik-auth-footer a { color: inherit; text-decoration: none; }
.mkik-auth-footer a:hover, .mkik-auth-footer a:focus-visible { color: var(--mkik-ink); text-decoration: underline; }
.custom-autocomplete, .ui-autocomplete { z-index: 10000; max-height: 260px; overflow-y: auto; border: 1px solid var(--mkik-line); border-radius: 8px; background: #ffffff; box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14); }
body.mkik-auth-body .noty_layout { width: min(420px, calc(100vw - 28px)); }
body.mkik-auth-body .noty_bar { overflow: hidden; border: 1px solid rgba(17, 17, 17, 0.1); border-radius: 8px; background: #ffffff; box-shadow: 0 22px 50px rgba(17, 17, 17, 0.2); }
body.mkik-auth-body .noty_body { padding: 16px 18px; color: var(--mkik-ink); font: 700 14px/1.45 'Roboto', Arial, sans-serif; }
body.mkik-auth-body .noty_type__error .noty_body { border-left: 6px solid var(--mkik-pink); }
body.mkik-auth-body .noty_type__success .noty_body { border-left: 6px solid var(--mkik-lime); }
body.mkik-auth-body .noty_type__warning .noty_body, body.mkik-auth-body .noty_type__info .noty_body { border-left: 6px solid var(--mkik-blue); }

@media (max-width: 720px) {
  .mkik-auth-topbar, .mkik-auth-main, .mkik-auth-footer { width: min(100% - 24px, 560px); }
  .mkik-auth-topbar { padding-top: 18px; }
  .mkik-auth-brand { align-items: flex-start; }
  .mkik-auth-logo { width: 96px; }
  .mkik-auth-card { padding: 30px 20px; }
  .mkik-auth-field-grid, .mkik-auth-phone-grid { grid-template-columns: 1fr; }
  .mkik-auth-footer { flex-direction: column; align-items: flex-start; }
}

.mkik-hidden-radio {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
