/* ============================================================
   Saigon Pearl Webmail - lop giao dien 2 cot khoac len login.jsp goc
   Navy #0B2545 / #16456F, vang dong #C9A44C
   Khong doi cau truc form -> giu nguyen co che login_csrf
   ============================================================ */
:root{
  --sp-navy:#0B2545; --sp-navy-2:#16456F; --sp-navy-3:#071A31;
  --sp-gold:#C9A44C; --sp-gold-soft:#E3C782;
  --sp-ink:#16202C; --sp-muted:#67727F; --sp-line:#DCE2E9; --sp-bg:#F5F7FA;
  --sp-font:Roboto,"Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --sp-serif:"Times New Roman",Georgia,serif;
}

html.sgp, html.sgp body{
  height:100%; margin:0; padding:0;
  background:var(--sp-bg); color:var(--sp-ink);
  font-family:var(--sp-font); font-size:15px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

html.sgp .LoginScreen,html.sgp .loginScreen{background:none !important;border:0;margin:0;padding:0;height:auto;width:auto;}
html.sgp .center,html.sgp .positioning{position:static;margin:0;padding:0;width:auto;height:auto;text-align:left;}
html.sgp .Footer,html.sgp body > .decor1,html.sgp body > .decor2{display:none !important;}
html.sgp .contentBox h1,html.sgp #bannerLink,html.sgp .ImgLoginBanner,html.sgp #ZLoginAppName{display:none !important;}
html.sgp #ZLoginWhatsThis,html.sgp #ZLoginUnsupported{display:none !important;}
html.sgp .contentBox hr{display:none;}
html.sgp,html.sgp body{overflow:hidden;}

.sgp-shell{
  position:fixed;top:0;left:0;right:0;bottom:0;width:100%;
  display:flex;align-items:stretch;overflow-y:auto;
}

.sgp-brand{
  flex:1 1 54%; position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center;
  padding:56px 6vw; color:#fff;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(201,164,76,.20), transparent 60%),
    linear-gradient(150deg,var(--sp-navy-2) 0%,var(--sp-navy) 48%,var(--sp-navy-3) 100%);
}
.sgp-brand::before{
  content:""; position:absolute; left:0; right:0; bottom:0; height:46%;
  background:
    linear-gradient(to top,rgba(201,164,76,.10),transparent 70%),
    repeating-linear-gradient(to bottom,rgba(255,255,255,.05) 0 1px,transparent 1px 22px);
  pointer-events:none;
}
.sgp-brand::after{
  content:""; position:absolute; right:-16%; top:-24%;
  width:70%; height:120%; transform:rotate(16deg);
  background:linear-gradient(90deg,rgba(255,255,255,.09),rgba(255,255,255,0));
  pointer-events:none;
}
.sgp-brand-inner{position:relative;z-index:2;max-width:600px;}

.sgp-logo{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:104px;min-height:104px;padding:12px;margin-bottom:28px;
  background:#fff;border-radius:16px;box-shadow:0 14px 34px rgba(0,0,0,.3);
}
.sgp-logo img{max-width:190px;max-height:110px;display:block;}

.sgp-wordmark{margin:0 0 26px;}
.sgp-wordmark .sgp-wm-name{
  font-family:var(--sp-serif);font-size:clamp(30px,3.6vw,46px);font-weight:700;
  letter-spacing:.10em;text-transform:uppercase;line-height:1;margin:0;color:#fff;
}
.sgp-wordmark .sgp-wm-line{display:flex;align-items:center;gap:14px;margin:14px 0 0;}
.sgp-wordmark .sgp-wm-line span{height:1px;flex:1;background:linear-gradient(90deg,var(--sp-gold),transparent);}
.sgp-wordmark .sgp-wm-line b{
  font-size:11.5px;letter-spacing:.34em;text-transform:uppercase;
  color:var(--sp-gold-soft);font-weight:500;white-space:nowrap;
}

.sgp-tagline{
  font-size:clamp(21px,2.2vw,30px);font-weight:400;line-height:1.35;margin:0 0 18px;
  color:#fff;font-family:var(--sp-serif);
}
.sgp-tagline em{font-style:normal;color:var(--sp-gold-soft);}
.sgp-sub{font-size:15.5px;color:rgba(255,255,255,.82);margin:0;max-width:46ch;}

.sgp-meta{
  position:relative;z-index:2;margin-top:46px;display:flex;gap:30px;flex-wrap:wrap;
  font-size:12.5px;color:rgba(255,255,255,.66);
}
.sgp-meta b{display:block;font-size:18px;color:var(--sp-gold-soft);font-weight:700;margin-bottom:2px;}

.sgp-panel{
  flex:1 1 46%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; padding:48px 5vw; background:#fff;
}
.sgp-panel-inner{width:100%;max-width:420px;}
.sgp-welcome{margin:0 0 4px;font-size:26px;font-weight:700;color:var(--sp-ink);}
.sgp-welcome-sub{margin:0 0 30px;color:var(--sp-muted);font-size:15px;}

html.sgp .contentBox{background:none;border:0;box-shadow:none;margin:0;padding:0;width:auto;}
html.sgp .contentBox table.form,
html.sgp .contentBox table.form tbody,
html.sgp .contentBox table.form tr,
html.sgp .contentBox table.form td{display:block;width:100%;box-sizing:border-box;padding:0;background:none;border:0;}
html.sgp .contentBox table.form td label{
  display:block;margin:0 0 6px;font-size:13px;font-weight:600;color:var(--sp-ink);
}
html.sgp td.submitTD{display:block;padding:0 !important;}
html.sgp td.submitTD label{display:inline !important;font-weight:400;font-size:14px;margin:0;color:var(--sp-muted);}

html.sgp input[type=text],
html.sgp input[type=password],
html.sgp input[type=email],
html.sgp input.zLoginField,
html.sgp select{
  width:100%;box-sizing:border-box;height:46px;padding:0 14px;margin:0 0 16px;
  border:1.5px solid var(--sp-line);border-radius:10px;background:#fff;
  color:var(--sp-ink);font-size:15px;font-family:var(--sp-font);
  transition:border-color .15s,box-shadow .15s;
}
html.sgp input[type=text]:focus,
html.sgp input[type=password]:focus,
html.sgp select:focus{
  outline:none;border-color:var(--sp-navy-2);box-shadow:0 0 0 4px rgba(22,69,111,.14);
}
html.sgp input[type=checkbox]{width:17px;height:17px;accent-color:var(--sp-navy-2);vertical-align:-3px;margin-right:8px;}
html.sgp select#client{height:42px;margin-top:4px;}

html.sgp .ZLoginButton,
html.sgp input[type=submit],
html.sgp .launchButton{
  display:block;width:100%;box-sizing:border-box;height:48px;margin:20px 0 0;padding:0 18px;
  background:linear-gradient(135deg,var(--sp-navy-2),var(--sp-navy));
  color:#fff !important;border:0;border-radius:10px;
  font-size:16px;font-weight:600;font-family:var(--sp-font);letter-spacing:.02em;cursor:pointer;
  box-shadow:0 8px 20px rgba(11,37,69,.30);
  transition:transform .12s,box-shadow .12s,filter .12s;
}
html.sgp .ZLoginButton:hover,html.sgp input[type=submit]:hover{
  filter:brightness(1.12);transform:translateY(-1px);box-shadow:0 12px 26px rgba(11,37,69,.36);
}
html.sgp .ZLoginButton:active,html.sgp input[type=submit]:active{transform:translateY(0);}

html.sgp #ZLoginErrorPanel{
  display:block;margin:0 0 18px;padding:12px 14px;
  background:#FFF4F4;border:1px solid #F3C9C9;border-left:4px solid #B42318;
  border-radius:8px;color:#8A1414;font-size:14px;text-align:left;
}
html.sgp a{color:var(--sp-navy-2);text-decoration:none;}
html.sgp a:hover{text-decoration:underline;}
html.sgp #ZLoginWhatsThisAnchor{font-size:12.5px;}

html.sgp .legalNotice-small,html.sgp .copyright{
  margin:26px 0 0;padding:0;font-size:12px;color:var(--sp-muted);
  text-align:left;line-height:1.6;background:none;border:0;
}
.sgp-notice{
  margin-top:22px;padding:12px 14px;border-radius:10px;
  background:#FFF8E6;border:1px solid #EFDDB0;color:#6B5410;font-size:12.5px;line-height:1.55;
}
.sgp-notice b{color:#8A6A00;}
.sgp-support{
  margin-top:18px;padding-top:16px;border-top:1px solid var(--sp-line);
  font-size:12.5px;color:var(--sp-muted);
}
.sgp-support b{color:var(--sp-ink);}

@media (max-width:980px){
  html.sgp,html.sgp body{overflow:auto;}
  .sgp-shell{position:static;flex-direction:column;min-height:100vh;}
  .sgp-brand{flex:0 0 auto;padding:34px 24px 30px;}
  .sgp-brand::after{display:none;}
  .sgp-logo{min-width:80px;min-height:80px;border-radius:13px;margin-bottom:18px;}
  .sgp-wordmark .sgp-wm-name{font-size:26px;}
  .sgp-tagline{font-size:19px;}
  .sgp-sub{font-size:14px;}
  .sgp-meta{margin-top:24px;gap:20px;}
  .sgp-meta b{font-size:16px;}
  .sgp-panel{padding:32px 22px 44px;}
}
@media (max-width:420px){
  .sgp-brand{padding:26px 18px 24px;}
  .sgp-panel{padding:26px 18px 36px;}
  .sgp-welcome{font-size:22px;}
}

/* khoang cach giua nut Dang nhap va hang "Phien ban" */
html.sgp td.submitTD{margin-bottom:24px;}
html.sgp .contentBox table.form tr:last-child td label{margin-top:2px;}

/* logo Saigon Pearl / Opal Tower / SSG Group - anh ngang 340x66, nen trong */
.sgp-logo{min-width:0;min-height:0;padding:18px 24px;border-radius:14px;margin-bottom:30px;}
.sgp-logo img{width:340px;max-width:100%;height:auto;max-height:none;display:block;}
@media (max-width:980px){
  .sgp-logo{padding:14px 18px;border-radius:12px;margin-bottom:20px;}
  .sgp-logo img{width:236px;}
}

/* ============================================================
   v2 - tinh chinh cot phai (02/09/2026)
   Bo dong quang cao Zimbra, lam lai nhip do va chi tiet form
   ============================================================ */

/* an dong "Zimbra :: the leader in open source messaging..." */
html.sgp #ZLoginNotice,
html.sgp .legalNotice-small,
html.sgp .copyright,
html.sgp .Footer{display:none !important;}
html.sgp a[href*="zimbra.com"]{display:none !important;}

.sgp-panel{background:linear-gradient(180deg,#FFFFFF 0%,#FCFDFE 100%);}
.sgp-panel-inner{max-width:396px;}

/* overline vang dong tren tieu de */
.sgp-welcome{position:relative;font-size:29px;letter-spacing:-.015em;margin:0 0 6px;}
.sgp-welcome::before{
  content:"SAIGON PEARL\00A0\00B7\00A0OPAL TOWER";
  display:block;font-family:var(--sp-font);
  font-size:10.5px;font-weight:700;letter-spacing:.26em;
  color:#B08D3C;margin:0 0 14px;
}
.sgp-welcome-sub{margin:0 0 30px;font-size:14.5px;color:#7A8592;}

/* nhan truong: nho, in hoa, gian chu */
html.sgp .contentBox table.form td label{
  font-size:11.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:#5B6773;margin:0 0 8px;
}

/* o nhap co icon */
html.sgp input[type=text],
html.sgp input[type=password],
html.sgp input.zLoginField{
  height:50px;padding:0 16px 0 46px;margin:0 0 18px;
  border:1.5px solid #E3E9EF;border-radius:12px;background-color:#FBFCFD;
  background-repeat:no-repeat;background-position:16px center;background-size:18px 18px;
  font-size:15px;color:var(--sp-ink);
  transition:border-color .16s,box-shadow .16s,background-color .16s;
}
html.sgp input#username{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}
html.sgp input#password{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
}
html.sgp input[type=text]:focus,
html.sgp input[type=password]:focus{
  background-color:#fff;border-color:var(--sp-navy-2);
  box-shadow:0 0 0 4px rgba(22,69,111,.10);
}
html.sgp input::placeholder{color:#A8B0BA;}

/* hang ghi nho - khong in hoa theo label truong */
html.sgp td.submitTD{margin-bottom:0;}
html.sgp td.submitTD label{
  text-transform:none !important;letter-spacing:0 !important;font-weight:400 !important;
  font-size:13.5px !important;color:#5B6773 !important;margin:0 !important;
}

html.sgp .ZLoginButton,
html.sgp input[type=submit],
html.sgp .launchButton{
  height:52px;margin:22px 0 0;border-radius:12px;
  font-size:15.5px;font-weight:600;letter-spacing:.03em;
  background:linear-gradient(135deg,#1B5488 0%,#0B2545 100%);
  box-shadow:0 10px 24px -6px rgba(11,37,69,.45);
}
html.sgp .ZLoginButton:hover,html.sgp input[type=submit]:hover{
  transform:translateY(-2px);filter:none;
  box-shadow:0 16px 30px -8px rgba(11,37,69,.52);
}

/* hang "Phien ban" thanh khu phu, tach bang duong ke */
html.sgp .contentBox table.form tr:last-child{
  display:block;margin-top:28px;padding-top:22px;border-top:1px solid #EDF1F5;
}
html.sgp .contentBox table.form tr:last-child td label{color:#8A94A0;}
html.sgp select#client{
  height:42px;border-radius:10px;background:#F6F8FA;border-color:#E3E9EF;
  font-size:14px;color:#5B6773;margin:0;
}
html.sgp #ZLoginWhatsThisAnchor{
  display:inline-block;margin-top:10px;font-size:12px;color:#8A94A0;
}
html.sgp #ZLoginWhatsThisAnchor:hover{color:var(--sp-navy-2);}

/* khoi canh bao lua dao - gon va sang hon */
.sgp-notice{
  position:relative;margin-top:26px;padding:14px 16px 14px 44px;
  background:#FBF9F3;border:1px solid #EFE7D4;border-radius:12px;
  color:#6E5B2E;font-size:12.5px;line-height:1.6;
}
.sgp-notice::before{
  content:"";position:absolute;left:15px;top:15px;width:18px;height:18px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>") no-repeat center/contain;
}
.sgp-notice b{color:#8A6A00;}

/* chan cot phai */
.sgp-support{
  margin-top:26px;padding-top:18px;border-top:1px solid #EDF1F5;
  font-size:12.5px;color:#8A94A0;
}
.sgp-support b{color:#5B6773;}
.sgp-support::after{
  content:"\00A9  2026 Saigon Pearl  \00B7  SSG Group";
  display:block;margin-top:7px;font-size:11.5px;color:#AEB6C0;
}

@media (max-width:980px){
  .sgp-welcome{font-size:24px;}
  .sgp-welcome::before{font-size:10px;letter-spacing:.22em;margin-bottom:11px;}
}

/* v2.1 - mobile: cho trang cao tu nhien de cuon het noi dung */
@media (max-width:980px){
  html.sgp,html.sgp body{height:auto;min-height:100%;overflow:auto;}
  .sgp-shell{position:static;min-height:0;}
}

/* ============================================================
   v2.2 - tach hang "Phien ban" ra khoi nut Dang nhap
   DOM that co them hang an (totp/trustedDevice) nen tr:last-child
   khong trung hang "Phien ban" -> ke duong tach ngay duoi o chua nut
   ============================================================ */
html.sgp .contentBox table.form tr:last-child{
  margin-top:0;padding-top:0;border-top:0;
}
html.sgp td.submitTD{
  display:block;
  margin:0 0 26px !important;
  padding:0 0 26px !important;
  border-bottom:1px solid #EDF1F5;
}
html.sgp .contentBox table.form tr:has(select#client){display:block;}
html.sgp .contentBox table.form tr:has(select#client) td label{color:#8A94A0;}

/* ============ FIX MOBILE 2026-09-03 ============
   Zimbra doi class khi client=mobile: .center -> .center-small,
   .Footer -> .Footer-small, ImgLoginBanner -> ImgAppBanner.
   Khong reset .center-small thi shell bi day ra ngoai man hinh.
   Kem fix nut Dang nhap float:right lam td.submitTD sap chieu cao.
   ================================================ */
html.sgp .center-small{
  position:static !important;left:auto !important;top:auto !important;
  margin:0 !important;padding:0 !important;width:auto !important;height:auto !important;
  text-align:left !important;background:none !important;border:0 !important;
}
html.sgp .Footer-small,html.sgp .ImgAppBanner{display:none !important;}
html.sgp input[type=text],html.sgp input[type=password],
html.sgp input[type=email],html.sgp input.zLoginField{width:100% !important;}
html.sgp select#client{width:100% !important;}
html.sgp .ZLoginButton,html.sgp input[type=submit],
html.sgp .launchButton{float:none !important;}
html.sgp td.submitTD{overflow:hidden;border-bottom:1px solid #EDF1F5 !important;}
