
html, body.woocommerce-account:not(.logged-in),
body.woocommerce-account:not(.logged-in) #wrapper,
body.woocommerce-account:not(.logged-in) #main,
body.woocommerce-account:not(.logged-in) #content {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
/* ==========================================================================
   AN QUÂN AUDIO - CUSTOM LOGIN & REGISTRATION
   100% Matched to Prototypes:
   - Desktop: 00-desktop.html (Screen 07 · ĐĂNG NHẬP)
   - Mobile:  00-mobile.html  (Screen 07 · ĐĂNG NHẬP)
   ========================================================================== */

:root {
  --primary: #C8102E;
  --primary-dark: #9a0c24;
  --accent: #FFB800;
  --dark: #0E1A2B;
  --dark2: #1a2332;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #f5f6fa;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --white: #fff;
}

/* Ẩn tiêu đề mặc định của Flatsome trên trang tài khoản khi chưa đăng nhập */
.page-title-account,
.account-header,
.woocommerce-account header.entry-header,
.woocommerce-account .page-title,
.woocommerce-account nav.woocommerce-breadcrumb {
  display: none !important;
}

body.woocommerce-account:not(.logged-in) #top-bar { display: none !important; }
body.woocommerce-account:not(.logged-in) {
  overflow-x: hidden !important;
}

body.woocommerce-account:not(.logged-in) #content {
  padding: 0 !important;
  background-color: var(--bg, #f5f6fa) !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Vùng bao toàn bộ trang xác thực */
.xc-auth-container {
  width: 100%;
  max-width: 1240px;
  margin: 40px auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ==========================================================================
   DESKTOP SCREEN 07 (00-desktop.html)
   ========================================================================== */
.login-page {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Cột Visual Trái (Navy #0E1A2B) */
.login-visual {
  background: linear-gradient(135deg, var(--dark, #0E1A2B), #172a47);
  color: #ffffff;
  padding: 60px 55px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.login-visual .logo {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -.5px;
  text-decoration: none !important;
  display: inline-block;
}

.login-visual .logo small {
  display: block;
  font: 600 8px Montserrat, sans-serif;
  letter-spacing: 3px;
  color: var(--accent, #FFB800);
  margin-top: 5px;
  text-transform: uppercase;
}

.login-visual .eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 20px;
  background: rgba(255, 184, 0, 0.14);
  color: var(--accent, #FFB800);
  font: 800 10px Montserrat, sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 45px;
  width: fit-content;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.login-visual h1 {
  font: 900 38px/1.12 Montserrat, sans-serif !important;
  margin: 16px 0 13px !important;
  max-width: 540px;
  color: #ffffff !important;
  letter-spacing: -0.5px;
}

.login-visual h1 span {
  color: var(--accent, #FFB800);
}

.login-visual p {
  color: #cbd5e1;
  font-size: 13px;
  max-width: 450px;
  line-height: 1.7;
  margin: 0;
}

.login-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  max-width: 500px;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}

.login-point {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 12px;
  font-size: 10.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(4px);
}

.login-art {
  position: absolute;
  width: 370px;
  height: 370px;
  right: -85px;
  bottom: -80px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}

/* Cột Phải (Light Grey & White Card) */
.login-side {
  background: var(--bg, #f5f6fa);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 25px;
  box-sizing: border-box;
}

.login-card {
  width: 430px;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.09);
  border-radius: 17px;
  padding: 30px;
  box-sizing: border-box;
}

.desktop-card-title {
  font: 900 24px Montserrat, sans-serif !important;
  margin: 0 0 6px !important;
  color: var(--dark, #0E1A2B) !important;
  line-height: 1.2 !important;
}

.desktop-card-sub {
  color: var(--muted, #6b7280);
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 17px;
}

/* Switch Tabs */
.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg, #f5f6fa);
  border-radius: 9px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.switch .tab-item {
  text-align: center;
  padding: 9px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted, #6b7280);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.switch .tab-item.active {
  background: #ffffff;
  color: var(--primary, #C8102E);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

/* Form Fields */
.field {
  margin: 13px 0;
}

.field label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark, #0E1A2B);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.field label .required {
  color: var(--primary, #C8102E);
  font-weight: 900;
}

.input {
  height: 42px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--muted, #6b7280);
  font-size: 11px;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  position: relative;
  width: 100%;
}

.input:focus-within {
  border-color: var(--primary, #C8102E);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.input .ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6b7280;
}

.input input {
  border: none !important;
  background: transparent !important;
  height: 100% !important;
  flex: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 11.5px !important;
  color: var(--dark, #0E1A2B) !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  width: 100% !important;
  min-width: 0 !important;
}

.input input::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

/* Nút ẩn/hiện mật khẩu */
.btn-toggle-eye {
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  cursor: pointer !important;
  color: var(--muted, #6b7280) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  transition: color 0.2s !important;
  margin-left: auto !important;
}

.btn-toggle-eye:hover {
  color: var(--dark, #0E1A2B) !important;
}

.btn-toggle-eye.active {
  color: var(--primary, #C8102E) !important;
}

/* Quy tắc mật khẩu & Feedback */
.xc-pwd-rules-hint {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.xc-rule-tag {
  font-size: 10px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.xc-rule-tag.valid {
  color: #10b981;
  font-weight: 600;
}

.xc-rule-tag.invalid {
  color: #ef4444;
}

.xc-pwd-match-msg {
  font-size: 10.5px;
  margin-top: 5px;
  font-weight: 600;
}

.xc-pwd-match-msg.valid {
  color: #10b981;
}

.xc-pwd-match-msg.invalid {
  color: #ef4444;
}

/* Hộp chính sách riêng tư */
.privacy-wrap {
  margin: 12px 0 16px;
  padding: 9px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.privacy-text {
  font-size: 10.5px !important;
  color: var(--muted, #6b7280) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.privacy-text a {
  color: var(--primary, #C8102E) !important;
  text-decoration: underline !important;
  font-weight: 600;
}

/* Hàng tùy chọn & Checkbox tùy biến */
.login-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 10px;
  margin: 12px 0 16px;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}

.remember-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer;
  user-select: none;
  color: var(--text, #1a1a1a);
  font-weight: 500;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.remember-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border, #cbd5e1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: all 0.18s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.custom-checkbox svg {
  width: 10px;
  height: 10px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s ease;
}

.remember-wrap input:checked + .custom-checkbox,
.custom-checkbox.checked {
  background: var(--primary, #C8102E);
  border-color: var(--primary, #C8102E);
}

.remember-wrap input:checked + .custom-checkbox svg,
.custom-checkbox.checked svg {
  opacity: 1;
  transform: scale(1);
}

.forgot-link {
  color: var(--primary, #C8102E) !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.forgot-link:hover {
  text-decoration: underline !important;
}

/* Nút Submit */
.btn-auth {
  width: 100% !important;
  height: 42px !important;
  background: linear-gradient(135deg, var(--primary, #C8102E), var(--primary-dark, #9a0c24)) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9px !important;
  font: 800 12px Montserrat, sans-serif !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.28) !important;
  transition: all 0.2s ease !important;
  margin-top: 10px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

.btn-auth:hover {
  opacity: 0.95 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35) !important;
}

.btn-auth.xc-btn-loading {
  opacity: 0.85 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Hộp Hotline Hỗ trợ */
.support {
  margin-top: 15px;
  padding: 11px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 9px;
  text-align: center;
  font-size: 9.5px;
  color: #78350f;
  line-height: 1.5;
  box-sizing: border-box;
}

.support .hl {
  color: var(--primary, #C8102E);
  font-weight: 800;
}

.support .sub {
  color: var(--muted, #6b7280);
}

/* Dòng Chuyển đổi */
.signup {
  text-align: center;
  font-size: 9.5px;
  margin-top: 14px;
  color: var(--muted, #6b7280);
}

.signup a {
  color: var(--primary, #C8102E);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.signup a:hover {
  text-decoration: underline;
}

/* Hộp Thông Báo Inline */
.xc-auth-alert {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.45;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.xc-auth-alert-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.xc-auth-alert-success {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
}

.xc-alert-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.xc-alert-text {
  flex: 1;
  font-weight: 500;
}

/* WooCommerce Notices inside Card */
.xc-card-notices-wrap .woocommerce-error,
.xc-card-notices-wrap .woocommerce-message,
.xc-card-notices-wrap .woocommerce-info {
  margin: 0 0 14px 0 !important;
  padding: 9px 12px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  list-style: none !important;
}

.xc-card-notices-wrap .woocommerce-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.xc-card-notices-wrap .message-container {
  padding: 0 !important;
  color: inherit !important;
  font-size: 11.5px !important;
}

/* Loading Spinner */
.xc-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: xcSpin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes xcSpin {
  to { transform: rotate(360deg); }
}

/* Ẩn phần tử mobile trên desktop */
@media (min-width: 850px) {
  .m-login-back,
  .m-login-logo {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE (100% Chuẩn Prototype 00-mobile.html Screen 07)
   ========================================================================== */
@media (max-width: 849px) {
  .xc-auth-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .login-visual {
    display: none !important;
  }

  .login-page {
    display: block !important;
    min-height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
  }

  .login-side {
    background: #ffffff !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .login-card {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 16px 20px 40px !important;
    box-sizing: border-box !important;
  }

  /* Mobile Header */
  .m-login-back {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg, #f5f6fa);
    border-radius: 10px;
    color: var(--dark, #0E1A2B);
    border: 0;
    text-decoration: none;
    margin-bottom: 12px;
  }

  .m-login-back svg {
    width: 18px;
    height: 18px;
  }

  .m-login-logo {
    display: block !important;
    text-align: center;
    margin-bottom: 20px;
  }

  .m-login-logo-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary, #C8102E), var(--primary-dark, #9a0c24));
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.3);
  }

  .m-login-logo-icon svg {
    width: 38px;
    height: 38px;
  }

  .m-login-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    font-size: 24px !important;
    color: var(--dark, #0E1A2B) !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 6px !important;
  }

  .m-login-sub {
    font-size: 12.5px !important;
    color: var(--muted, #6b7280) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
  }

  .desktop-card-title,
  .desktop-card-sub {
    display: none !important;
  }

  /* Mobile Tabs */
  .switch {
    background: var(--bg, #f5f6fa);
    padding: 4px;
    border-radius: 10px;
    margin: 18px 0;
  }

  .switch .tab-item {
    padding: 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  /* Mobile Inputs */
  .field label {
    font-size: 10.5px;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
  }

  .input {
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid var(--border, #e5e7eb);
    padding: 0 14px;
    box-sizing: border-box !important;
  }

  .input input {
    font-size: 13.5px !important;
  }

  .input .ic {
    width: 18px;
    height: 18px;
  }

  .login-row {
    font-size: 12px;
    margin: 12px 0 20px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .login-row .remember-wrap {
    font-size: 12px !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
  }

  .custom-checkbox svg {
    width: 11px;
    height: 11px;
  }

  .forgot-link {
    font-size: 12px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  /* Mobile CTA */
  .btn-auth {
    height: 48px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3) !important;
  }

  /* Mobile Support Hotline */
  .support {
    background: linear-gradient(135deg, #fffbeb, #fff);
    border-radius: 10px;
    padding: 13px;
    font-size: 11px;
    margin-top: 18px;
  }

  .support .hl {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    display: block;
    margin: 4px 0;
  }

  .signup {
    margin-top: 20px;
    font-size: 12.5px;
  }
}
