/* BLUEFLOW Login Polish v2 — visual refinement only, scoped to auth */
#auth .hero h1 .bf-login-title-line{display:block}
#auth .authcard{width:min(100%,548px)!important}
#auth .auth-note{transform:none!important;max-width:none!important;padding:7px 10px;border:1px solid #d8e9f6;border-radius:999px;background:#f4faff;color:#5f7b91!important;font-size:10px!important;font-weight:700;line-height:1.2!important;white-space:nowrap}
#auth .input-shell .inp{background:#fbfdff!important;border-color:#cfe0ee!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(23,52,82,.025)!important}
#auth .input-shell .inp:hover{background:#fff!important;border-color:#a9d1ed!important}
#auth .input-shell .inp:focus{background:#fff!important;border-color:#168bff!important;box-shadow:0 0 0 4px rgba(22,139,255,.11)!important}
#auth .input-shell .inp.bf-auth-invalid{border-color:#dd6672!important;box-shadow:0 0 0 4px rgba(221,102,114,.09)!important;background:#fffdfd!important}
#auth input:-webkit-autofill,#auth input:-webkit-autofill:hover,#auth input:-webkit-autofill:focus{-webkit-text-fill-color:#173452!important;-webkit-box-shadow:0 0 0 1000px #fbfdff inset!important;box-shadow:0 0 0 1000px #fbfdff inset!important;transition:background-color 9999s ease-out 0s}
#auth .bf-auth-field-error{margin:6px 2px 0 4px;color:#b63e4d;font-size:10.5px;line-height:1.45;font-weight:500}
#auth .authcard .primary:disabled{opacity:.72;cursor:wait;transform:none!important;box-shadow:0 8px 18px rgba(20,123,212,.17)!important}
#auth .secure-note{color:#71899c!important;background:#f6faff!important;border:1px solid #e3edf5;border-radius:12px;padding:9px 11px}
#auth #authMsg .msg{margin-top:12px;font-size:11.5px;line-height:1.5}

body:has(#auth:not(.hide)) .theme-toggle.auth-mode{width:42px;height:42px;padding:0!important;justify-content:center;right:20px;top:48px;border-radius:13px;box-shadow:0 7px 20px rgba(23,52,82,.08)}
body:has(#auth:not(.hide)) .theme-toggle.auth-mode .theme-toggle-label{display:none}
body:has(#auth:not(.hide)) .theme-toggle.auth-mode .theme-toggle-icon{width:27px;height:27px}
body:has(#auth:not(.hide)) #bfSupportRoot{right:18px;bottom:18px}
body:has(#auth:not(.hide)) #bfSupportRoot .bf-support-launcher{padding:9px 12px;gap:7px;font-size:12px;box-shadow:0 10px 26px rgba(0,106,206,.20)}
body:has(#auth:not(.hide)) #bfSupportRoot .bf-support-launcher i{width:9px;height:9px}

@media (min-width:901px){
  #auth.auth{grid-template-columns:minmax(0,1.08fr) minmax(490px,.92fr)!important}
  #auth .hero{padding-left:clamp(46px,5.2vw,82px)!important;padding-right:clamp(38px,4.5vw,72px)!important}
  #auth .hero-content{max-width:760px!important}
  #auth .hero h1{font-size:clamp(40px,2.85vw,54px)!important;line-height:1.08!important;max-width:760px!important;letter-spacing:-1.25px!important}
  #auth .hero h1 .bf-login-title-line{white-space:nowrap}
  #auth .hero-scene{bottom:clamp(54px,6.5vh,82px)!important;right:clamp(-8px,1vw,22px)!important;width:min(43%,450px)!important;transform:scale(.95)!important;transform-origin:right bottom!important}
  #auth .wrap{padding-left:clamp(32px,4vw,64px)!important;padding-right:clamp(32px,4vw,64px)!important}
  #auth .authcard{padding:32px 32px 26px!important}
}
@media (min-width:901px) and (max-width:1180px){
  #auth .hero h1{font-size:38px!important;letter-spacing:-1px!important}
  #auth .hero h1 .bf-login-title-line{white-space:normal}
  #auth .hero-scene{bottom:38px!important;right:-34px!important;width:min(47%,420px)!important;transform:scale(.9)!important}
}
@media (min-width:901px) and (max-height:820px){
  #auth .hero-scene{bottom:24px!important;transform:scale(.88)!important}
  #auth .authcard{padding-top:24px!important;padding-bottom:20px!important}
}
@media(max-width:900px){
  #auth .auth-note{display:none!important}
  body:has(#auth:not(.hide)) #bfSupportRoot .bf-support-launcher span.label{display:none}
  body:has(#auth:not(.hide)) #bfSupportRoot .bf-support-launcher{width:48px;height:48px;padding:0;justify-content:center}
}
html[data-theme="dark"] #auth .auth-note{background:#14283b;border-color:#29465d;color:#9fc5e2!important}
html[data-theme="dark"] #auth .secure-note{background:#122437!important;border-color:#294156;color:#9fb5c8!important}
html[data-theme="dark"] #auth input:-webkit-autofill,html[data-theme="dark"] #auth input:-webkit-autofill:hover,html[data-theme="dark"] #auth input:-webkit-autofill:focus{-webkit-text-fill-color:#edf6ff!important;-webkit-box-shadow:0 0 0 1000px #0c1623 inset!important;box-shadow:0 0 0 1000px #0c1623 inset!important}

/* BLUEFLOW Login Story Panel v1 */
@media (min-width:901px){
  #auth .hero.bf-story-hero{
    justify-content:stretch!important;
    padding:clamp(28px,3.4vw,54px) clamp(38px,4.5vw,70px)!important;
    background:
      radial-gradient(circle at 88% 11%,rgba(109,196,255,.30) 0 13%,transparent 34%),
      radial-gradient(circle at 5% 94%,rgba(116,222,179,.16) 0 9%,transparent 26%),
      linear-gradient(145deg,#f4faff 0%,#dff3ff 56%,#eff9ff 100%)!important;
  }
  #auth .hero.bf-story-hero:before{right:-160px!important;top:-210px!important;width:520px!important;height:520px!important;background:rgba(92,183,248,.10)!important}
  #auth .hero.bf-story-hero:after{left:-120px!important;bottom:-150px!important;width:330px!important;height:330px!important;background:rgba(100,211,163,.10)!important}
  #auth .bf-story-shell{position:relative;z-index:5;width:100%;height:100%;max-width:820px;display:grid;grid-template-rows:auto auto minmax(220px,1fr);gap:16px;align-content:center}
  #auth .bf-story-header{max-width:760px}
  #auth .bf-story-header .brand{display:flex;align-items:center;gap:10px;font-size:27px!important;letter-spacing:-.5px;margin-bottom:20px}
  #auth .bf-story-header .logo{width:45px!important;height:45px!important;border-radius:15px!important;box-shadow:0 12px 28px rgba(22,139,255,.20)!important}
  #auth .bf-story-kicker{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;border:1px solid rgba(147,204,244,.56);background:rgba(255,255,255,.68);color:#0879dc;font-size:11px;font-weight:800;box-shadow:0 8px 24px rgba(23,52,82,.05);backdrop-filter:blur(10px)}
  #auth .bf-story-kicker i{width:7px;height:7px;border-radius:50%;background:#168bff;box-shadow:0 0 0 4px rgba(22,139,255,.10)}
  #auth .bf-story-header h1{margin:15px 0 9px!important;max-width:760px!important;font-size:clamp(39px,2.65vw,52px)!important;line-height:1.08!important;letter-spacing:-1.35px!important;color:#173452!important}
  #auth .bf-story-header h1 span{display:block;white-space:nowrap}
  #auth .bf-story-header p{max-width:690px!important;margin:0!important;font-size:14px!important;line-height:1.65!important;color:#627c92!important}

  #auth .bf-story-industries{display:grid;grid-template-columns:180px 1fr;gap:14px;align-items:center;padding:12px 14px;border:1px solid rgba(203,224,240,.88);border-radius:22px;background:rgba(255,255,255,.72);box-shadow:0 14px 34px rgba(44,91,126,.07);backdrop-filter:blur(12px)}
  #auth .bf-story-industries-copy b{display:block;color:#193c5b;font-size:12px;line-height:1.35}
  #auth .bf-story-industries-copy small{display:block;margin-top:3px;color:#89a0b2;font-size:9px;line-height:1.35}
  #auth .bf-story-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
  #auth .bf-story-chip{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border-radius:999px;border:1px solid #d9e7f2;background:#fff;color:#4f6f87;font-size:9px;font-weight:700;white-space:nowrap}

  #auth .bf-story-journey{min-height:0;padding:16px 16px 14px;border-radius:28px;border:1px solid rgba(196,222,241,.92);background:rgba(255,255,255,.80);box-shadow:0 22px 54px rgba(41,83,115,.10);backdrop-filter:blur(16px);display:flex;flex-direction:column;overflow:hidden}
  #auth .bf-story-journey-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
  #auth .bf-story-journey-label{display:flex;align-items:center;gap:8px;color:#173f60;font-size:11px;font-weight:900;letter-spacing:.02em}
  #auth .bf-story-journey-dots{display:flex;gap:4px}.bf-story-journey-dots i{width:7px;height:7px;border-radius:50%;background:#d2e7f6}.bf-story-journey-dots i:first-child{width:22px;border-radius:999px;background:#168bff}
  #auth .bf-story-journey-badge{padding:5px 8px;border-radius:999px;background:#eaf6ff;color:#0879dc;font-size:8px;font-weight:900;border:1px solid #d6ebfb}
  #auth .bf-story-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;flex:1;align-content:center}
  #auth .bf-story-step{position:relative;min-width:0;padding:12px 11px 11px;border:1px solid #dbe9f3;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(36,78,109,.055)}
  #auth .bf-story-step.active{border-color:#83c8ff;box-shadow:0 0 0 2px rgba(22,139,255,.08),0 10px 26px rgba(22,139,255,.09)}
  #auth .bf-story-step-no{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;margin-bottom:9px;background:#eaf5ff;color:#168bff;font-size:9px;font-weight:900}
  #auth .bf-story-step.active .bf-story-step-no{background:#168bff;color:#fff}
  #auth .bf-story-step b{display:block;font-size:11px;color:#1e405d;line-height:1.35}
  #auth .bf-story-step small{display:block;margin-top:4px;font-size:8.5px;color:#94a7b7;line-height:1.4}
  #auth .bf-story-step-status{display:inline-flex;margin-top:8px;padding:4px 7px;border-radius:999px;background:#f3f8fc;color:#7190a6;font-size:7.5px;font-weight:800}
  #auth .bf-story-step.active .bf-story-step-status{background:#e6f4ff;color:#0879dc}
  #auth .bf-story-journey-foot{display:flex;align-items:center;gap:7px;margin-top:11px;padding-top:10px;border-top:1px solid #e5eef5;color:#728ca0;font-size:9px;font-weight:650}
  #auth .bf-story-journey-foot i{width:18px;height:18px;border-radius:7px;background:#e9f5ff;color:#168bff;display:grid;place-items:center;font-style:normal;font-weight:900}
}

@media (min-width:901px) and (max-width:1350px){
  #auth .bf-story-shell{gap:12px}
  #auth .bf-story-header .brand{margin-bottom:14px}
  #auth .bf-story-header h1{font-size:36px!important;margin-top:12px!important}
  #auth .bf-story-industries{grid-template-columns:1fr;padding:10px 12px}
  #auth .bf-story-chips{justify-content:flex-start}
  #auth .bf-story-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  #auth .bf-story-step{padding:9px 10px}
  #auth .bf-story-step-no{width:27px;height:27px;margin-bottom:6px}
  #auth .bf-story-step-status{margin-top:5px}
}
@media (min-width:901px) and (max-height:820px){
  #auth .hero.bf-story-hero{padding-top:20px!important;padding-bottom:20px!important}
  #auth .bf-story-shell{grid-template-rows:auto auto minmax(190px,1fr);gap:10px}
  #auth .bf-story-header .brand{margin-bottom:10px;font-size:23px!important}
  #auth .bf-story-header .logo{width:39px!important;height:39px!important}
  #auth .bf-story-kicker{padding:6px 10px;font-size:9.5px}
  #auth .bf-story-header h1{font-size:34px!important;margin:9px 0 6px!important}
  #auth .bf-story-header p{font-size:11.5px!important;line-height:1.5!important}
  #auth .bf-story-industries{padding:8px 10px;border-radius:18px}
  #auth .bf-story-chip{height:24px;font-size:8px;padding:0 7px}
  #auth .bf-story-journey{padding:12px;border-radius:22px}
  #auth .bf-story-journey-head{margin-bottom:8px}
  #auth .bf-story-step{padding:8px 9px;border-radius:15px}
  #auth .bf-story-step-no{width:24px;height:24px;border-radius:8px;font-size:8px;margin-bottom:5px}
  #auth .bf-story-step b{font-size:9.5px}#auth .bf-story-step small{font-size:7.5px}
  #auth .bf-story-journey-foot{margin-top:7px;padding-top:7px}
}
@media(max-width:900px){#auth .hero.bf-story-hero{display:none!important}}

html[data-theme="dark"] #auth .hero.bf-story-hero{background:radial-gradient(circle at 88% 8%,rgba(44,116,168,.28) 0 13%,transparent 34%),radial-gradient(circle at 4% 95%,rgba(53,126,93,.17) 0 9%,transparent 26%),linear-gradient(145deg,#0c1725,#10263a 56%,#0b1826)!important}
html[data-theme="dark"] #auth .bf-story-header h1{color:#edf6ff!important}
html[data-theme="dark"] #auth .bf-story-header p{color:#9ab0c3!important}
html[data-theme="dark"] #auth .bf-story-kicker{background:rgba(18,43,65,.82);border-color:#2a5675;color:#89d0ff}
html[data-theme="dark"] #auth .bf-story-industries,html[data-theme="dark"] #auth .bf-story-journey{background:rgba(16,27,42,.82);border-color:#294359;box-shadow:0 20px 48px rgba(0,0,0,.18)}
html[data-theme="dark"] #auth .bf-story-industries-copy b,html[data-theme="dark"] #auth .bf-story-journey-label{color:#dcecf9}
html[data-theme="dark"] #auth .bf-story-industries-copy small,html[data-theme="dark"] #auth .bf-story-journey-foot{color:#8ea4b7}
html[data-theme="dark"] #auth .bf-story-chip{background:#13263a;border-color:#2e4b62;color:#a9c0d3}
html[data-theme="dark"] #auth .bf-story-step{background:#112033;border-color:#2b4358;box-shadow:none}
html[data-theme="dark"] #auth .bf-story-step.active{border-color:#348ed0;box-shadow:0 0 0 2px rgba(22,139,255,.08)}
html[data-theme="dark"] #auth .bf-story-step b{color:#e2eef8}
html[data-theme="dark"] #auth .bf-story-step small{color:#8299ac}
html[data-theme="dark"] #auth .bf-story-step-no{background:#17324b;color:#89ceff}
html[data-theme="dark"] #auth .bf-story-step.active .bf-story-step-no{background:#168bff;color:#fff}
html[data-theme="dark"] #auth .bf-story-step-status{background:#16293b;color:#91abc0}
html[data-theme="dark"] #auth .bf-story-step.active .bf-story-step-status{background:#15334d;color:#88cfff}
html[data-theme="dark"] #auth .bf-story-journey-foot{border-color:#263d51}

/* Signup identity wording v1 — distinguish account owner from store/business name. */
#signupForm .signup-grid>.wide:first-child>label{font-size:0!important}
#signupForm .signup-grid>.wide:first-child>label::after{content:'ชื่อเจ้าของร้าน / ผู้ใช้งาน';font-size:12px;font-weight:700;line-height:1.4}
#signupForm .signup-grid>.wide:first-child .input-shell{position:relative}
#signupForm #signupName::placeholder{color:transparent!important;-webkit-text-fill-color:transparent!important}
#signupForm .signup-grid>.wide:first-child .input-shell:has(#signupName:placeholder-shown)::after{content:'เช่น คุณวิว';position:absolute;left:43px;top:50%;transform:translateY(-50%);z-index:2;pointer-events:none;color:#8ba0b3;font-size:13px;font-weight:500}
#signupForm .signup-grid>.wide:first-child::after{content:'ใช้เป็นชื่อบัญชีผู้ดูแล ไม่ใช่ชื่อร้าน';display:block;margin:6px 2px 0;color:#8297aa;font-size:10px;line-height:1.45}
html[data-theme="dark"] #signupForm .signup-grid>.wide:first-child .input-shell:has(#signupName:placeholder-shown)::after{color:#8fa8bd}
html[data-theme="dark"] #signupForm .signup-grid>.wide:first-child::after{color:#8fa5b8}
