/* Original Toshiba CSS is in styles.css + wgw_login.css, intact.
   Only these few rules adapt non-Toshiba Wing FTP controls and mobile layout. */
html, body.tgcs-wing-login { min-height: 100%; }
body.tgcs-wing-login { margin: 0; background: #efeded; }
body.tgcs-wing-login .wing-login-asset { display:block; }
body.tgcs-wing-login a.extLink { padding-left:16px; }
body.tgcs-wing-login .toshiba-wordmark-fallback {
  display:inline-block; color:#fff; font-family:Arial,Helvetica,sans-serif;
  font-size:22px; font-weight:800; letter-spacing:1px;
  margin-top:1px; padding-bottom:1px;
}
body.tgcs-wing-login .toshiba-wordmark-fallback small {
  display:block; color:#ddd; font-size:9px; line-height:12px;
  letter-spacing:1.05px; font-weight:400;
}
body.tgcs-wing-login .tgcs-missing-image {display:none;}
body.tgcs-wing-login input[type=hidden] {display:none!important;}
body.tgcs-wing-login .submitButton {display:inline-block!important;width:auto!important;min-width:66px;max-width:105px;}
body.tgcs-wing-login .section input[type=text],
body.tgcs-wing-login .section input[type=password] {box-sizing:content-box;}
body.tgcs-wing-login .section td:first-child {padding-right:9px;}
body.tgcs-wing-login .section td { padding-top:2px; padding-bottom:2px;}
body.tgcs-wing-login .section .controls {margin:10px 0;}
body.tgcs-wing-login .wing-preferences {display:none; margin:10px 0 12px 15px; padding:12px 15px; border:1px solid #ccc; max-width:410px; background:#fff;}
body.tgcs-wing-login .wing-preferences.is-open {display:block;}
body.tgcs-wing-login .wing-preferences .setting {margin-bottom:11px; font-size:12px;}
body.tgcs-wing-login .wing-preferences .setting:last-child {margin-bottom:0;}
body.tgcs-wing-login .wing-preferences label {color:#59595a;}
body.tgcs-wing-login .wing-preferences select {font-size:12px;max-width:200px;}
body.tgcs-wing-login .wing-preferences input[type=checkbox],
body.tgcs-wing-login .wing-preferences input[type=radio] {vertical-align:middle;}
body.tgcs-wing-login .wing-preferences .qr-link {color:#000;text-decoration:underline;cursor:pointer;}
body.tgcs-wing-login .wing-preferences img#qrcode {display:none; margin:8px 0;max-width:140px;height:auto;}
body.tgcs-wing-login .wing-preferences p {margin:0;}
body.tgcs-wing-login .wingfoot-button {
 border:0; padding:0; background:none; color:black; font:inherit; cursor:pointer;
 text-decoration:none; vertical-align:baseline;
}
body.tgcs-wing-login .wingfoot-button:hover {color:#ed1c24;}
/* The source Toshiba sprite image wasn't included. Render simple recognizable
   social glyphs without a network dependency. Original link box dimensions remain. */
body.tgcs-wing-login .socialnav .sprite { background-image:none!important; overflow:visible; display:block; text-align:center; text-decoration:none; color:#666; font-size:0; font-weight:bold; line-height:23px; }
body.tgcs-wing-login .socialnav .sprite--social-twitter {font-size:0;}
body.tgcs-wing-login .socialnav .sprite--social-twitter::after {content:'𝕏'; font-size:18px;}
body.tgcs-wing-login .socialnav .sprite--social-facebook::after {content:'f';font-size:17px;}
body.tgcs-wing-login .socialnav .sprite--social-youtube {font-size:0;}
body.tgcs-wing-login .socialnav .sprite--social-youtube::after {content:'▶';font-size:18px;}
body.tgcs-wing-login .socialnav .sprite--social-linkedin {font-size:0;}
body.tgcs-wing-login .socialnav .sprite--social-linkedin::after {content:'in';font-size:14px;}
/* Original Toshiba source forces width:768px on mobile; prevent sideways scroll. */
@media (max-width:767px) {
 body.tgcs-wing-login.r-body {width:auto; min-width:300px;}
 body.tgcs-wing-login .l-page {width:auto;max-width:100%;}
 body.tgcs-wing-login .r-navigation .logonav-logo img {max-width:223px;}
 body.tgcs-wing-login .tgcs-body-space {min-height:330px!important;height:auto!important;}
 body.tgcs-wing-login .section {width:auto; max-width:calc(100% - 18px);}
 body.tgcs-wing-login .section input[type=text],body.tgcs-wing-login .section input[type=password] {max-width:calc(100vw - 165px);}
 body.tgcs-wing-login .r-footer .grid>*,body.tgcs-wing-login .r-footer .grid .grid>* {float:none; width:auto;}
 body.tgcs-wing-login .socialnav {margin-top:16px;}
 body.tgcs-wing-login .logonav-logo,.logonav-logo>img {height:auto; max-height:82px;}
 body.tgcs-wing-login .brand-second {display:none;}
}
/* Existing Wing FTP validation modal: must remain functional and legible. */
body.tgcs-wing-login .alert-overlay {position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;justify-content:center;align-items:center;z-index:1000;opacity:0;visibility:hidden;transition:all .2s;}
body.tgcs-wing-login .alert-overlay.active {opacity:1;visibility:visible;}
body.tgcs-wing-login .alert-modal {background:#fff;border-radius:5px;max-width:460px;width:95%;box-shadow:0 14px 38px rgba(0,0,0,.2);padding:0;}
body.tgcs-wing-login .alert-header {display:flex;gap:12px;align-items:center;padding:16px 20px 0;}
body.tgcs-wing-login .alert-icon {width:24px;height:24px;border-radius:50%;background:#409eff;color:#fff;font-weight:bold;display:flex;align-items:center;justify-content:center;}
body.tgcs-wing-login .alert-modal.error .alert-icon {background:#f56c6c;}
body.tgcs-wing-login .alert-title {font-size:15px;font-weight:bold;color:#2d3748;}
body.tgcs-wing-login .alert-body {padding:16px 20px;}
body.tgcs-wing-login .alert-message {font-size:13px;color:#4a5568;line-height:1.5;margin:0;}
body.tgcs-wing-login .alert-footer {display:flex;gap:10px;justify-content:flex-end;padding:0 20px 16px;}
body.tgcs-wing-login .alert-button {font-size:13px;border:0;border-radius:4px;cursor:pointer;padding:8px 16px;font-weight:500;}
body.tgcs-wing-login .alert-cancel {background:#e2e8f0;color:#4a5568;}
body.tgcs-wing-login .alert-confirm {background:#409eff;color:#fff;}
