﻿/* =============================================================================
   DangNhapTaiKhoan – Auth Styles  v6.0
   Premium redesign: form card · flex inputs (icon always centred) · dot-grid panel
   ============================================================================= */

/* ── Scoped reset ─────────────────────────────────────────────────────────────*/
body.dntk-page,
body.dntk-page * { box-sizing: border-box; }
/* Override theme input styles that cause alignment issues */
body.dntk-page input,
body.dntk-page button,
body.dntk-page textarea,
body.dntk-page select {
  margin: 0;
  font-family: inherit;
}
body.dntk-page {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: #edf2f8;
  color: #1a202c;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Kill browser-injected autofill icons */
.dntk-input::-webkit-contacts-auto-fill-button,
.dntk-input::-webkit-credentials-auto-fill-button {
  visibility: hidden !important;
  display: none !important;
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════════════════════
   LAYOUT
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-layout {
  display: flex !important;
  flex-direction: row !important;
  min-height: 100vh;
}

/* ── Left decorative panel ───────────────────────────────────────────────────*/
.dntk-panel-left {
  flex: 1 1 0 !important;
  min-width: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 60px 52px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #090e28 0%, #1a3478 50%, #2563eb 100%) !important;
}
/* Dot-grid overlay */
.dntk-panel-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}
/* Top-right glow blob */
.dntk-panel-left::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  top: -120px; right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.28) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.dntk-panel-left-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
}
a.dntk-um-login-btn {
    color: #ffffff;
}
/* Brand */
.dntk-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 56px;
}
.dntk-logo-img { max-height: 44px; max-width: 160px; object-fit: contain; }
.dntk-logo-svg { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.dntk-brand-name      { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.dntk-brand-name-dark { color: #0f172a; }

/* Panel copy */
.dntk-panel-copy { margin-bottom: 44px; }
.dntk-welcome-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.9px;
  color: #fff;
  margin: 0 0 18px;
}
.dntk-welcome-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* Feature list — frosted glass card */
.dntk-feature-list {
  list-style: none;
  margin: 0; padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
}
.dntk-feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  line-height: 1.4;
}
.dntk-feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    rgba(37,99,235,.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ── Right panel ─────────────────────────────────────────────────────────────*/
.dntk-panel-right {
  flex: 0 0 560px !important;
  max-width: 560px;
  min-height: 100vh;    /* always tall enough to centre vertically */
  background: #edf2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

/* Form card */
.dntk-form-wrap {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 24px;
  padding: 36px 40px 52px;
  box-shadow:
    0 1px 3px rgba(0,0,0,.04),
    0 6px 24px rgba(0,0,0,.07),
    0 20px 64px rgba(0,0,0,.06);
  border: 1px solid rgba(220,228,238,.7);
}

/* Mobile brand */
.dntk-mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.dntk-mobile-brand .dntk-logo-svg { width: 36px; height: 36px; }

/* ═════════════════════════════════════════════════════════════════════════════
   TAB SWITCHER
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 28px;
  gap: 4px;
  border: 1px solid #e8edf5;
}
.dntk-auth-tab {
  flex: 1;
  text-align: center;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  letter-spacing: .1px;
  transition: color .18s, background .18s, box-shadow .18s;
}
.dntk-auth-tab:hover:not(.is-active) {
  color: #334155;
  background: rgba(255,255,255,.6);
}
.dntk-auth-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 6px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
}

/* ═════════════════════════════════════════════════════════════════════════════
   FORM HEADING  (no-tab state)
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-form-heading {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.7px;
  margin: 0 0 6px;
  line-height: 1.18;
}
/* Gradient accent underline */
.dntk-form-heading::after {
  content: "";
  display: block;
  width: 44px;
  height: 3.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
  margin-top: 10px;
}
.dntk-form-subheading {
  font-size: 14px;
  color: #64748b;
  margin: 18px 0 32px;
  line-height: 1.65;
}

/* ═════════════════════════════════════════════════════════════════════════════
   ALERTS
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 20px;
}
.dntk-alert svg         { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.dntk-alert-error       { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dntk-alert-error  svg  { stroke: #ef4444; }
.dntk-alert-success     { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.dntk-alert-success svg { stroke: #22c55e; }

/* ═════════════════════════════════════════════════════════════════════════════
   FORM STRUCTURE
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-form       { display: flex; flex-direction: column; gap: 20px; }
.dntk-field      { display: flex; flex-direction: column; gap: 7px; }
.dntk-field-row  { display: flex; gap: 14px; }
.dntk-field-row > .dntk-field { flex: 1; min-width: 0; }

/* Label */
.dntk-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: .1px;
}
.dntk-label .required,
.dntk-field label .required { color: #ef4444; margin-left: 2px; }

/* Field header: label + forgot link */
.dntk-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dntk-link-forgot {
  font-size: 12.5px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.dntk-link-forgot:hover { text-decoration: underline; color: #1d4ed8; }

/* ═════════════════════════════════════════════════════════════════════════════
   INPUTS  ─  FLEX APPROACH
   Border lives on the WRAPPER, not the input.
   Icon & toggle are FLEX SIBLINGS of the input — never absolutely positioned.
   This guarantees perfect vertical centring on every browser/theme.
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-input-wrap {
  display: flex;
  align-items: stretch;          /* children fill full height */
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;              /* clips children to border-radius */
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.dntk-input-wrap:hover {
  border-color: #c7d2e0;
  background: #fff;
}
.dntk-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3.5px rgba(37,99,235,.13);
  background: #fff;
}

/* Left icon — flex child, always centred */
.dntk-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  color: #a0aec0;
  pointer-events: none;
  transition: color .18s;
}
.dntk-input-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
  flex-shrink: 0;
}
.dntk-input-wrap:focus-within .dntk-input-icon { color: #2563eb; }

/* Input itself — flex child */
.dntk-input {
  flex: 1;
  min-width: 0;
  height: 50px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14.5px;
  line-height: 50px;
  color: #1e293b;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
/* Legacy padding helper classes — overridden to 0 since layout is flex now */
.dntk-input-has-icon   { padding-left: 0 !important; }
.dntk-input-has-toggle { padding-right: 0 !important; }

.dntk-input::placeholder { color: #b8c3d0; font-size: 14px; font-weight: 400; }

/* Right password toggle — flex child (NOT absolute) */
.dntk-toggle-pwd {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #a0aec0;
  transition: color .15s;
  border-radius: 0;
  line-height: 0;
}
.dntk-toggle-pwd:hover { color: #2563eb; }
.dntk-toggle-pwd:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
.dntk-toggle-pwd svg { width: 17px; height: 17px; display: block; }

/* ═════════════════════════════════════════════════════════════════════════════
   PASSWORD STRENGTH METER
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-strength-meter { overflow: hidden; max-height: 0; transition: max-height .3s; }
.dntk-strength-meter.visible { max-height: 40px; }
.dntk-strength-bar { height: 3px; background: #e5e7eb; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.dntk-strength-fill { height: 100%; width: 0; border-radius: 3px; transition: width .35s, background .35s; }
.dntk-strength-fill.weak   { width: 25%;  background: #ef4444; }
.dntk-strength-fill.fair   { width: 50%;  background: #f97316; }
.dntk-strength-fill.good   { width: 75%;  background: #eab308; }
.dntk-strength-fill.strong { width: 100%; background: #22c55e; }
.dntk-strength-label { display: block; font-size: 11px; font-weight: 600; margin-top: 4px; color: #6b7280; }

/* ═════════════════════════════════════════════════════════════════════════════
   CUSTOM CHECKBOX
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-checkbox-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.45;
}
.dntk-checkbox-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.dntk-checkbox-box {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px; height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.dntk-checkbox-wrap input:checked ~ .dntk-checkbox-box {
  background: #2563eb;
  border-color: #2563eb;
}
.dntk-checkbox-wrap input:checked ~ .dntk-checkbox-box::after {
  content: "";
  display: block;
  width: 4px; height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.dntk-checkbox-wrap input:focus-visible ~ .dntk-checkbox-box {
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.dntk-checkbox-text         { flex: 1; }
.dntk-checkbox-text a       { color: #2563eb; text-decoration: none; }
.dntk-checkbox-text a:hover { text-decoration: underline; }

/* ═════════════════════════════════════════════════════════════════════════════
   RECAPTCHA
   ═════════════════════════════════════════════════════════════════════════════*/
.g-recaptcha { transform-origin: left top; }

/* ═════════════════════════════════════════════════════════════════════════════
   SUBMIT BUTTON
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-btn-primary {
  width: 100%;
  height: 44px;
  padding: 0 24px;
  background: #1565c0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: none;
  border: 1.5px solid #1565c0;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: background .18s, border-color .18s, transform .14s;
  font-family: inherit;
  margin-top: 4px;
}
.dntk-btn-primary:hover {
  background: #0d47a1;
  border-color: #0d47a1;
  transform: translateY(-1px);
}
.dntk-btn-primary:active  { transform: translateY(0); }
.dntk-btn-primary:focus-visible { outline: 3px solid rgba(21,101,192,.45); outline-offset: 2px; }
.dntk-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.dntk-btn-spinner { display: flex; align-items: center; }
@keyframes dntk-spin { to { transform: rotate(360deg); } }
.dntk-spin { animation: dntk-spin .75s linear infinite; width: 18px; height: 18px; display: block; }

/* ═════════════════════════════════════════════════════════════════════════════
   DIVIDER & SOCIAL
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin: 20px 0;
}
.dntk-divider::before,
.dntk-divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }

.dntk-social-row { display: flex; gap: 10px; }
.dntk-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.dntk-social-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  color: #111827;
}

/* ═════════════════════════════════════════════════════════════════════════════
   HONEYPOT
   ═════════════════════════════════════════════════════════════════════════════*/
.dntk-hp {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESET PAGE
   ═════════════════════════════════════════════════════════════════════════════*/

/* Shield / lock illustration on left panel */
.dntk-reset-visual {
  width: 200px;
  margin: 0 auto 40px;
  opacity: .95;
  filter: drop-shadow(0 12px 40px rgba(37,99,235,.35));
}
.dntk-reset-visual svg { width: 100%; height: auto; display: block; }

/* Numbered steps list — replaces feature-list on reset page */
.dntk-step-list {
  list-style: none;
  margin: 0; padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
}
.dntk-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}
.dntk-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.45);
  margin-top: 1px;
}

/* Lock icon hero — inside right card, above heading */
.dntk-reset-icon-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.dntk-reset-icon-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(37,99,235,.38),
    inset 0 1px 0 rgba(255,255,255,.2);
}
.dntk-reset-icon-circle svg { width: 32px; height: 32px; }

/* Reset wrap — slightly adjusted vertical padding */
.dntk-reset-wrap { padding-top: 40px; padding-bottom: 44px; }

/* ── Success state ─────────────────────────────────────────────────────────*/
.dntk-reset-success {
  text-align: center;
  padding: 8px 0 4px;
}

.dntk-success-icon-wrap {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 28px;
}
.dntk-success-icon-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,.35);
  animation: dntk-ring-pulse 2s ease-in-out infinite;
}
@keyframes dntk-ring-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.1); opacity: .5; }
}
.dntk-success-icon-circle {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 36px rgba(34,197,94,.38),
    inset 0 1px 0 rgba(255,255,255,.2);
}
.dntk-success-icon-circle svg { width: 40px; height: 40px; }

.dntk-reset-success-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.5px;
  margin: 0 0 10px;
  line-height: 1.2;
}
.dntk-reset-success-msg {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.75;
  margin: 0 0 24px;
}
.dntk-reset-success-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 13px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}
.dntk-reset-success-hint svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #94a3b8;
  width: 16px; height: 16px;
}
.dntk-reset-success-hint strong { color: #1e293b; }

/* Back to login link */
.dntk-reset-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8edf5;
}
.dntk-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color .16s;
}
.dntk-back-link:hover { color: #2563eb; }
.dntk-back-link svg { flex-shrink: 0; width: 16px !important; height: 16px !important; transition: transform .16s; }
.dntk-back-link:hover svg { transform: translateX(-3px); }

/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════════════════════*/
@media (max-width: 980px) {
  .dntk-layout { flex-direction: column; }

  .dntk-panel-left { display: none; }

  .dntk-panel-right {
    flex: 1 1 auto;       /* fill remaining height → enables vertical centre */
    max-width: 100%;
    min-height: 100vh;
    background: #edf2f8;
    padding: 48px 20px;
    align-items: center;  /* vertical centre inside row-flex panel */
    justify-content: center;
  }
  .dntk-form-wrap { max-width: 480px; padding: 30px 28px 46px; }
  .dntk-mobile-brand { display: flex; }
}

@media (max-width: 540px) {
  .dntk-panel-right { padding: 32px 16px; }
  .dntk-form-wrap   { padding: 24px 20px 40px; border-radius: 20px; }
  .dntk-field-row   { flex-direction: column; gap: 20px; }
  .dntk-social-row  { flex-direction: column; }
  .dntk-auth-tab    { padding: 10px; font-size: 13px; }
  .dntk-welcome-title { font-size: 30px; }
}

/* ── Hide theme-injected stray elements ─────────────────────────────────────*/
body.dntk-page > *:not(.dntk-layout):not(#wpadminbar) {
  display: none !important;
}

