/* ==========================================================================
   signup.css — Log360 Cloud signup form
   Local optimised copy of the ManageEngine signup form stylesheet.

   Changes from the CDN original:
     • IE legacy font formats (eot / embedded-opentype) removed
     • Popup-modal block (.signup-popup, .signup-popup-rhs etc.) removed
       — only the inline embeddable form is used here
     • .t-box-body context overrides removed (different page context)
     • body .heading-menu rule removed (unrelated page rule)
     • Overly-scoped media query replaced with a simple one
     • Duplicate submit/button rule merged into one
     • Relative sprite path changed to absolute CDN URL
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font faces — ZohoPuvi (woff2 + ttf only; IE eot variants dropped)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_extralight.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_extralight.ttf')   format('truetype');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_light.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_light.ttf')   format('truetype');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_regular.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_regular.ttf')   format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_regular_italic.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_regular_italic.ttf')   format('truetype');
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_medium.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_medium.ttf')   format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_semibold.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_semibold.ttf')   format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_semibold_italic.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_semibold_italic.ttf')   format('truetype');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_bold.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_bold.ttf')   format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_bold_italic.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_bold_italic.ttf')   format('truetype');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_extrabold.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_extrabold.ttf')   format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_black.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_black.ttf')   format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'ZohoPuvi';
  src: url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_extrablack.woff2') format('woff2'),
       url('https://fonts.zohowebstatic.com/zohopuvi/3.5/zoho_puvi_extrablack.ttf')   format('truetype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.signup-container {
  width: 350px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Signup box
   -------------------------------------------------------------------------- */
.signup-box {
  position: relative;
  box-sizing: border-box;
  background: #fff;
  width: 100%;
}
.signup-box * {
  box-sizing: border-box;
  font-family: 'ZohoPuvi';
}
.signup-box .mandate { display: none; }
.signup-box .zhide-common { display: none; }

.signup-box h3 { font-size: 22px; }
.signup-box h5 { color: #000; }

.signup-box .sign-in {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
}
.signup-box .sign-in a {
  color: #00a4fc;
}

/* --------------------------------------------------------------------------
   Text inputs
   -------------------------------------------------------------------------- */
.signup-box input[type=email],
.signup-box input[type=number],
.signup-box input[type=password],
.signup-box input[type=search],
.signup-box input[type=tel],
.signup-box input[type=text],
.signup-box input[type=url],
.signup-box textarea {
  color: #000;
  padding: 14px 12px;
  border: 1px solid #d5d5d5;
  display: block;
  width: 100%;
  font-size: 14px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 1;
  transition: 0.5s;
  border-radius: 6px;
  height: 48px;
  font-family: var(--primaryfont-regular);
  line-height: 1;
}
.signup-box input[type=email]:focus,
.signup-box input[type=number]:focus,
.signup-box input[type=password]:focus,
.signup-box input[type=search]:focus,
.signup-box input[type=tel]:focus,
.signup-box input[type=text]:focus,
.signup-box input[type=url]:focus,
.signup-box textarea:focus {
  outline: 1px solid #ccc;
}
.signup-box input[type=email]::placeholder,
.signup-box input[type=number]::placeholder,
.signup-box input[type=password]::placeholder,
.signup-box input[type=search]::placeholder,
.signup-box input[type=tel]::placeholder,
.signup-box input[type=text]::placeholder,
.signup-box input[type=url]::placeholder,
.signup-box textarea::placeholder {
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Password toggle
   -------------------------------------------------------------------------- */
.za-password-container { position: relative; }
.za-password-container input { padding-right: 35px; }
.za-password-container span.zpassword-show {
  position: absolute;
  right: 4px;
  top: 0;
  z-index: 10;
  cursor: pointer;
  width: 30px;
  height: 48px;
  font-size: 0;
  text-indent: -9999px;
}
.za-password-container span.zpassword-show:before {
  content: '';
  width: 20px;
  background: url(https://www.manageengine.com/cloud-siem/images/log360cloud-signup-sprite.png) no-repeat;
  background-size: 60px 21px;
  background-position: -32px -4px;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  margin: auto;
  margin-top: 15px;
  opacity: 0.7;
  height: 14px;
}
.za-password-container span.zpassword-show.active:before {
  background-position: -5px -4px;
}

/* --------------------------------------------------------------------------
   Country / state selects
   -------------------------------------------------------------------------- */
.signup-box .za-country-container {
  position: relative;
  background: #fff;
}
.signup-box .za-country-container.za-country-container-arrow { display: none; }
.signup-box .za-country-container.za-country-container-arrow.zshow {
  display: block;
  margin-top: 30px;
}
.signup-box .za-country-container.za-country-container-arrow.zshow + .dc-info {
  margin-top: 5px;
}
.signup-box .za-country-container .globalcountrycode-signup {
  color: #000;
  padding: 14px 12px;
  border: 1px solid #d5d5d5;
  display: block;
  width: 100%;
  font-size: 14px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 1;
  transition: 0.5s ease;
  height: 48px;
  font-family: var(--primaryfont-regular);
  line-height: 1;
  border-radius: 6px;
}
.signup-box .za-country-container .placeholder {
  font-size: 11px;
  top: -20px;
  left: 0;
  position: absolute;
}
.signup-box .za-state-container .za-globalstate-signup {
  color: #000;
  padding: 14px 12px;
  border: 1px solid #d5d5d5;
  display: block;
  width: 100%;
  font-size: 14px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 1;
  transition: 0.5s ease;
  height: 48px;
  font-family: var(--primaryfont-regular);
  line-height: 1;
  border-radius: 6px;
}

/* Hidden by default — Zoho SDK controls visibility via inline styles */
.za-country-container,
.za-state-container,
.za-state-container.zshow-common,
.zcountry-info,
.signup-box #zip-countryname-change,
.za-company-container {
  display: none !important;
}

/* Reveal "Change Country" strip + link + select when opted in via data-show-country-change="true" */
[data-show-country-change="true"] .zcountry-info {
  display: block !important;
}
[data-show-country-change="true"] #zip-countryname-change {
  display: inline !important;
}
[data-show-country-change="true"] .za-country-container.za-country-container-arrow.zshow {
  display: block !important;
}

/* --------------------------------------------------------------------------
   Country / DC info text
   -------------------------------------------------------------------------- */
.signup-box p.zcountry-info {
  color: #000;
  font-size: 11px;
  margin: 10px 0 0;
  text-align: left;
  line-height: 1.6;
  font-weight: 300;
}
.signup-box p.zcountry-info #zip-countryname {
  font-weight: 500;
  text-transform: uppercase;
}
.signup-box span#zip-countryname-change {
  color: #000;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 3px;
}
.signup-box p.dc-info {
  color: #000;
  font-size: 11px;
  margin: 6px 0 5px;
  text-align: left;
  line-height: 1.6;
  font-weight: 300;
}
.signup-box p.dc-info .dcset {
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 3px;
}

/* --------------------------------------------------------------------------
   Newsletter opt-in
   -------------------------------------------------------------------------- */
.signup-box .za-newsletter-container {
  margin: 10px 0 0;
  position: relative;
  font-size: 11px;
}
.signup-box .za-newsletter-container span { font-size: 11px; }
.signup-box .za-newsletter-container label {
  position: relative;
  padding-left: 20px;
  font-weight: 400;
  line-height: 18px;
}
.signup-box .za-newsletter-container label span { font-size: 11px; }
.signup-box .za-newsletter-container #signup-newsletter {
  position: absolute;
  top: 2px;
  left: 0;
}
.signup-box #signup-newsletter {
  border: 1px solid #ccc;
  display: inline-block;
  height: 15px;
  margin-right: 4px;
  width: 15px;
  position: relative;
  vertical-align: sub;
}
.signup-box #newsletter {
  height: 1px;
  left: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 1px;
}
.signup-box #signup-newsletter.checked::before {
  background: #333;
  content: '';
  height: 2px;
  left: 4px;
  position: absolute;
  top: 5px;
  transform: rotate(-45deg);
  width: 9px;
}
.signup-box #signup-newsletter.checked::after {
  background: #333;
  content: '';
  height: 2px;
  left: 2px;
  position: absolute;
  top: 7px;
  transform: rotate(45deg);
  width: 5px;
}

/* --------------------------------------------------------------------------
   Terms of service
   -------------------------------------------------------------------------- */
.signup-box .za-tos-container {
  margin: 8px 0 15px;
  position: relative;
}
.signup-box .za-tos-container label {
  position: relative;
  padding-left: 20px;
  font-weight: 500;
  line-height: 18px;
}
.signup-box .za-tos-container #signup-termservice {
  position: absolute;
  top: 2px;
  left: 0;
}
.signup-box .za-tos-container .field-msg {
  margin: 12px 0 0 -15px;
}
.signup-box #signup-termservice {
  border: 1px solid #ccc;
  display: inline-block;
  height: 15px;
  margin-right: 4px;
  width: 15px;
  position: relative;
  vertical-align: sub;
}
.signup-box #tos {
  height: 1px;
  left: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 1px;
}
.signup-box #signup-termservice.checked::before {
  background: #333;
  content: '';
  height: 2px;
  left: 4px;
  position: absolute;
  top: 5px;
  transform: rotate(-45deg);
  width: 9px;
}
.signup-box #signup-termservice.checked::after {
  background: #333;
  content: '';
  height: 2px;
  left: 2px;
  position: absolute;
  top: 7px;
  transform: rotate(45deg);
  width: 5px;
}
.signup-box .sign_agree {
  color: #333;
  font-size: 11px;
  display: inline-block;
  line-height: 1.3;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--zf-primary-semibold), sans-serif;
}
.signup-box .sign_agree a {
  color: #333;
  font-size: 11px;
  text-decoration: underline;
}
.signup-box label {
  color: #333;
  font-size: 11px;
  display: inline-block;
  line-height: 1.3;
  cursor: pointer;
  margin-top: 5px;
  width: 100%;
  text-align: left;
  font-family: var(--zf-primary-semibold), sans-serif;
}

/* --------------------------------------------------------------------------
   Form field group
   -------------------------------------------------------------------------- */
.signup-box .sgfrm { margin: 15px 0 0; }

/* --------------------------------------------------------------------------
   Submit button (merged input[type=submit] and input[type=button])
   -------------------------------------------------------------------------- */
.signup-box .sgnbtn input[type='submit'],
.signup-box .sgnbtn input[type='button'] {
  font-size: 15px;
  height: 50px;
  padding: 0 60px;
  background: #f0483e;
  text-align: center;
  text-transform: uppercase;
  border: 0;
  color: #fff;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 6px;
  transition: background 0.2s;
}
.signup-box .sgnbtn input[type='submit']:hover,
.signup-box .sgnbtn input[type='button']:hover {
  background: #d83025;
}
.signup-box .sgnbtn input[type='submit']:disabled,
.signup-box .sgnbtn input[type='button']:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Validation errors
   -------------------------------------------------------------------------- */
.signup-box .error,
.signup-box .za-email-suggestion .za-domain-error {
  color: red;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 5px;
}
.signup-box .field-error .field-msg { display: block; text-align: left; }
.signup-box .field-error .field-msg * { font-size: 11px; }

/* --------------------------------------------------------------------------
   Social / federated login icons
   -------------------------------------------------------------------------- */
.signup-box .socl-signup {
  margin-top: 10px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  line-height: 24px;
  padding: 0;
}
.signup-box .socl-signup p {
  color: #000;
  font-size: 13px;
}
.signup-box .socl-signup a,
.signup-box .socl-signup span {
  background-image: url(https://www.zohowebstatic.com/sites/zweb/images/commonroot/common-elements.svg);
  background-size: 950px auto;
  font-size: 0;
  text-indent: -9999px;
  display: inline-block;
  color: #aaa;
  cursor: pointer;
  margin: 0 0 0 10px;
  overflow: hidden;
  width: 36px;
  height: 36px;
  line-height: 24px;
  vertical-align: middle;
}
.signup-box .socl-signup span.vi-google {
  background-size: 667px auto;
  background-position: -75px 0;
  width: 74px;
  height: 28px;
}
.signup-box .socl-signup span.vi-facebook {
  background-position: -215px 0;
  width: 30px;
  height: 30px;
}
.signup-box .socl-signup span.vi-linkedin {
  background-position: -286px 0;
  width: 30px;
  height: 30px;
}
.signup-box .socl-signup span.vi-twitter {
  background-position: -193px 0;
  background-size: 740px;
  width: 28px;
  height: 25px;
}
.signup-box .socl-signup span.vi-office365 {
  background-position: -317px 0;
  width: 26px;
  height: 30px;
}

/* --------------------------------------------------------------------------
   Logged-in view
   -------------------------------------------------------------------------- */
.signupbtn-acc h2,
.signupbtn-acc h2 span {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 7px;
}
.signupbtn-acc p {
  font-size: 12px;
  color: #757575;
  margin: 0;
}
.signupbtn-access {
  display: block;
  position: relative;
  z-index: 99;
  font-size: 15px;
  height: 50px;
  line-height: 50px;
  padding: 0 60px;
  background: #f0483e;
  text-align: center;
  text-transform: inherit;
  border: 0;
  color: #fff;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 2px;
  margin: 20px 0 40px;
}
.signupbtn-access:hover { background-color: #d83025; }

/* --------------------------------------------------------------------------
   OTP verification step
   -------------------------------------------------------------------------- */
.signupotpcontainer .verifytitle {
  margin-bottom: 10px;
  text-align: left;
  font-weight: 500;
  font-size: 16px;
}
.signupotpcontainer .verifyheader {
  text-align: left;
  font-size: 15px;
}
.signupotpcontainer .za-otp-container {
  text-align: left;
  font-size: 16px;
  font-weight: 500;
}
.signupotpcontainer .otpmobile {
  margin-bottom: 15px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
}
.signupotpcontainer .change {
  cursor: pointer;
  margin-left: 5px;
  font-size: 0.9em;
  border-bottom: 1px solid;
  display: inline-block;
  line-height: 1;
}
.signupotpcontainer .resendotp {
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9em;
  margin-top: 8px;
  display: inline-block;
  text-align: left;
}
.signupotpcontainer .za-submitbtn-otp .signupbtn {
  background: #f0483e;
  border: 0;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  padding: 14px 12px;
  display: block;
  width: 100%;
  margin: 15px 0 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 1;
  transition: 0.5s ease;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   Social / federated login block
   Class prefix: me-social-*  (kept off SDK's .socl-signup to avoid conflicts)
   -------------------------------------------------------------------------- */

/* Suppress the Zoho SDK's own federated block when we render ours */
.me-social-signup ~ .socl-signup,
.signup-box:has(.me-social-signup) .socl-signup { display: none !important; }

/* ── Wrapper ── */
.me-social-signup { margin-top: 16px; }

/* ── Divider ── */
.me-social-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.me-social-divider::before,
.me-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.me-social-divider span {
  white-space: nowrap;
  font-size: 12px;
  color: #aaa;
}

/* ── Base button ── */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-family: 'ZohoPuvi', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.social-btn:hover { background: #f5f5f5; border-color: #bbb; }
.social-btn svg   { flex-shrink: 0; }

/* ── Layout: stack (default) — full-width rows, icon left, label centered ── */
.me-social--stack .me-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.me-social--stack .social-btn {
  width: 100%;
  justify-content: center;
  position: relative;
}
.me-social--stack .social-btn svg {
  position: absolute;
  left: 16px;
}

/* ── Layout: row — full-width rows, icon + label left-aligned ── */
.me-social--row .me-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.me-social--row .social-btn {
  width: 100%;
  justify-content: flex-start;
}

/* ── Layout: icon — icon-only squares in a single horizontal row ── */
.me-social--icon .me-social-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}
.me-social--icon .social-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Layout: grid — 2-column, icon + label ── */
.me-social--grid .me-social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.me-social--grid .social-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Responsive — full width on narrow screens
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 425px) {
  .signup-container { width: 100%; }
}
