/* T-First Plus Login page styles (Theme v80) — used by Views/Account/Login.cshtml */
:root{
  --brand:#015159; --text:#062942; --muted:#6c8190; --line:#d8e5e8;
  --green:#0aa88d; --surface:#fff; --page:#f8fbfb;
  font-family:'Noto Sans Thai',sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:inherit;color:var(--text);background:var(--page);overflow-x:hidden}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
.login-page{min-height:100vh;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:26px 32px 34px;background:linear-gradient(112deg,#fff 0 56%,#f6fbfb 100%)}
.login-page:before{content:"";position:absolute;width:540px;height:540px;border-radius:50%;background:#eef5f6;left:46%;top:-385px;opacity:.72}
.login-page:after{content:"";position:absolute;width:470px;height:470px;border-radius:50%;background:#f0f8f7;left:43%;bottom:-365px;opacity:.7}
.login-shell{width:min(1240px,calc(100vw - 64px));display:grid;grid-template-columns:minmax(0,650px) 500px;gap:44px;align-items:center;position:relative;z-index:1}
.login-side{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:6px 0}
.brand{display:flex;align-items:center;gap:15px}
.brandmark{width:64px;height:64px;flex:0 0 64px;display:block;object-fit:contain}
.brand-title{font-size:37px;line-height:1;font-weight:700;letter-spacing:-.4px}
.brand-title span{font-size:21px;color:#0baf92;margin-left:7px}
.brand-sub{font-size:13px;color:var(--muted);margin-top:7px}
.hero-copy{margin-top:28px;max-width:610px}
.hero-copy h1{margin:0;font-size:28px;line-height:1.36;font-weight:700}
.hero-copy h1 b{color:var(--green)}
.hero-copy>p{margin:7px 0 18px;font-size:14px;color:#617687}
.feature-list{display:grid;gap:10px;max-width:610px}
.feature{display:grid;grid-template-columns:40px minmax(0,1fr);gap:11px;align-items:center}
.feature-icon{width:40px;height:40px;border-radius:10px;border:1px solid #dfe9eb;background:#fff;display:grid;place-items:center;color:var(--brand);box-shadow:0 4px 12px rgba(12,58,71,.04)}
.feature-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.feature strong{display:block;font-size:14.5px;font-weight:600;line-height:1.3}
.feature span{display:block;font-size:13px;line-height:1.42;color:#728390;margin-top:1px}
.side-footer{margin-top:18px;display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-size:10.8px;color:#728291}
.side-footer span{display:inline-flex;align-items:center;gap:5px}
.side-footer i{width:1px;height:12px;background:#d7e1e4}
.side-footer svg{width:13px;height:13px;fill:none;stroke:#597386;stroke-width:1.8}
.login-main{min-width:0}
.login-card{width:500px;max-width:100%;background:#fff;border:1px solid #e1e9ec;border-radius:19px;box-shadow:0 18px 46px rgba(12,58,71,.10);padding:27px 34px 25px}
.card-logo{width:72px;height:72px;margin:0 auto 9px;display:block;object-fit:contain}
.login-card h2{margin:0;text-align:center;font-size:23px;line-height:1.3;font-weight:700}
.login-sub{text-align:center;margin:5px 0 18px;color:#6b7f8e;font-size:12px;line-height:1.45}
.login-sub span{display:block}
.alert{display:none;margin:0 0 12px;padding:9px 10px;border-radius:8px;border:1px solid #efc1c1;background:#fff4f4;color:#ac4141;font-size:13px}
.alert.show{display:block}
.field{margin-bottom:13px}
.field label{display:block;margin:0 0 5px;font-size:14px;font-weight:500;color:#173d56}
.input-wrap{position:relative}
.input-wrap input{width:100%;height:43px;border:1px solid #cfdce2;border-radius:9px;background:#fff;padding:0 42px;outline:none;font-size:14px}
.input-wrap input:focus{border-color:#5a9da0;box-shadow:0 0 0 3px rgba(1,81,89,.08)}
.input-wrap>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;fill:none;stroke:#7890a0;stroke-width:1.8;pointer-events:none}
.eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;background:transparent;border-radius:7px;display:grid;place-items:center}
.eye:hover{background:#f3f8f8}
.eye svg{width:16px;height:16px;fill:none;stroke:#7890a0;stroke-width:1.8}
.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
.remember{display:flex;align-items:center;gap:7px;font-size:13px;color:#455f72}
.remember input{width:15px;height:15px;accent-color:var(--brand)}
.forgot{border:0;background:transparent;color:#1671b8;font-size:13px;font-weight:500;padding:0}
.login-btn{width:100%;height:44px;border:0;border-radius:9px;background:linear-gradient(90deg,#015159,#05676c);color:#fff;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 6px 14px rgba(1,81,89,.15)}
.login-btn svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.8}
.divider{display:flex;align-items:center;gap:10px;margin:16px 0 11px;color:#82919d;font-size:12.5px}
.divider:before,.divider:after{content:"";height:1px;background:#dfe7ea;flex:1}
.sso{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sso button{display:none;height:39px;border:1px solid #d5e0e5;background:#fff;border-radius:8px;align-items:center;justify-content:center;gap:6px;font-size:13px;color:#29475c}
.sso button.show{display:flex}
.sso button:hover{background:#f7fafb}
.sso svg{width:16px;height:16px;flex:none}
.security{margin-top:14px;padding:10px 11px;border-radius:10px;background:#f0f8f7;display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center}
.security-icon{width:32px;height:32px;border-radius:8px;background:#ddf1ef;display:grid;place-items:center}
.security-icon svg{width:19px;height:19px;fill:none;stroke:#087e78;stroke-width:1.8}
.security strong{display:block;font-size:13.5px;font-weight:600;color:#17534f}
.security span{display:block;font-size:12px;line-height:1.42;color:#6d7f8d;margin-top:1px}
.lang{position:fixed;top:20px;right:26px;height:38px;border:1px solid #dae5e8;background:#fff;border-radius:10px;padding:0 10px;display:flex;align-items:center;gap:7px;box-shadow:0 3px 10px rgba(12,58,71,.04);z-index:5}
.lang svg{width:15px;height:15px;fill:none;stroke:#385c72;stroke-width:1.8;flex:none}
.lang select{border:0;background:transparent;outline:0;font-size:11.5px;font-weight:500;cursor:pointer}
.copyright{position:fixed;right:25px;bottom:14px;font-size:10px;color:#7d8b96;z-index:5}
.tf-swal{font-family:'Noto Sans Thai',sans-serif!important;border-radius:16px!important;padding:1.5rem 1.2rem 1.25rem!important;--swal2-success:#015159;--swal2-error:#ef6667;--swal2-warning:#f5ae33;--swal2-info:#015159}
.tf-swal .swal2-actions{display:flex!important;gap:12px!important;margin:1.15rem 0 0!important;width:100%!important;justify-content:center!important}
.tf-swal-title{color:#015159!important;font-size:1.25rem!important;font-weight:700!important}
.tf-swal-text{color:#355066!important;font-size:14px!important}
.tf-swal-ok,.tf-swal-cancel{min-width:128px!important;height:40px!important;padding:0 18px!important;font-weight:600!important;border-radius:10px!important;box-sizing:border-box!important;flex:1 1 128px!important;max-width:168px!important}
.tf-swal-ok{background:#015159!important;color:#fff!important;border:0!important}
.tf-swal-ok:hover{background:#00464d!important}
.tf-swal-cancel{background:#fff!important;color:#015159!important;border:1.5px solid #015159!important}
.tf-swal-cancel:hover{background:#eef8f8!important}
.swal2-container{z-index:20000}
@media(max-width:1240px){
  .login-shell{grid-template-columns:minmax(0,600px) 470px;gap:34px}
  .login-card{width:470px;padding:25px 30px}
}
@media(max-width:980px){
  .login-page{padding:72px 22px 30px;align-items:center;justify-content:flex-start;flex-direction:column}
  .login-shell{width:min(760px,100%);grid-template-columns:1fr;gap:28px}
  .login-side{padding:0 18px}
  .side-footer{margin-top:18px}
  .login-main{display:flex;justify-content:center}
  .login-card{width:min(500px,100%)}
  .feature-list{grid-template-columns:1fr 1fr;max-width:none}
  .hero-copy{max-width:none}
  .copyright{position:static;width:100%;text-align:center;margin-top:14px}
  .lang{right:18px}
}
@media(max-width:620px){
  .login-page{padding:66px 14px 24px}
  .login-side{padding:0 3px}
  .brandmark{width:52px;height:52px;flex-basis:52px}
  .brand-title{font-size:29px}
  .brand-title span{font-size:17px}
  .brand-sub{font-size:11.5px}
  .hero-copy{margin-top:22px}
  .hero-copy h1{font-size:23px}
  .hero-copy>p{font-size:12.5px}
  .feature-list{grid-template-columns:1fr}
  .side-footer{display:none}
  .lang{top:12px;right:12px}
  .login-card{padding:21px 17px;border-radius:15px}
  .sso{grid-template-columns:1fr}
  .copyright{font-size:9.5px}
}
