/* Modern Register page (account/register). Loaded by extension/module/itj_otp/addScript on that route only.
   Restyles the stock OpenCart form; field names and the form itself are untouched. */
.itj-reg-page{--r-accent:#1565c0;--r-accent-soft:#e8f0fe;--r-ok:#16a34a;--r-bad:#dc2626;--r-line:#d6dbe3;--r-text:#1f2937;--r-mute:#6b7280;--r-bg:#f4f6fa}
.itj-reg-page #content{float:none;margin:0 auto;max-width:620px;width:100%}
.itj-reg-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.08);padding:28px 28px 24px;margin:6px 0 30px;color:var(--r-text)}
.itj-reg-head h1{font-size:26px;font-weight:700;margin:0 0 6px;color:var(--r-text);text-transform:none;letter-spacing:0}
.itj-reg-head p{color:var(--r-mute);margin:0 0 14px;font-size:14.5px}
.itj-reg-perks{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0;list-style:none}
.itj-reg-perks li{display:flex;align-items:center;gap:6px;background:var(--r-accent-soft);color:#0d47a1;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}
.itj-reg-perks svg{width:16px;height:16px}
.itj-reg-google{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;border:1px solid var(--r-line)!important;border-radius:12px!important;background:#fff!important;color:var(--r-text)!important;font-weight:600;font-size:15px;text-decoration:none!important;transition:box-shadow .15s,border-color .15s}
.itj-reg-google:hover{border-color:#9aa4b2!important;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.itj-reg-google svg{width:20px;height:20px}
.itj-reg-or{display:flex;align-items:center;gap:12px;color:var(--r-mute);font-size:13px;margin:18px 0 10px}
.itj-reg-or:before,.itj-reg-or:after{content:"";flex:1;height:1px;background:#e5e7eb}
.itj-reg-progress{height:6px;border-radius:99px;background:#eef1f5;overflow:hidden;margin:4px 0 4px}
.itj-reg-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#42a5f5,var(--r-ok));transition:width .35s}
.itj-reg-progress-text{font-size:12.5px;color:var(--r-mute);margin-bottom:10px;text-align:right}
/* stacked fields instead of the 2/10 bootstrap columns */
.itj-reg-form fieldset{border:0;margin:0 0 6px;padding:0;min-width:0}
.itj-reg-form legend{display:flex;align-items:center;gap:10px;border:0;font-size:16px;font-weight:700;color:var(--r-text);margin:14px 0 12px;padding:0;width:100%}
.itj-reg-form legend .itj-reg-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--r-accent);color:#fff;font-size:13px}
.itj-reg-form .form-group{margin:0 0 14px!important;display:block}
.itj-reg-form .form-group>.control-label{float:none;width:auto;text-align:left!important;padding:0 0 6px!important;font-weight:600;font-size:13.5px;color:#374151;display:block}
.itj-reg-form .form-group.required>.control-label:before{content:none}
.itj-reg-form .form-group.required>.control-label:after{content:" *";color:var(--r-bad)}
.itj-reg-form .form-group>[class*="col-sm-"]{float:none;width:auto;padding:0;position:relative}
.itj-reg-two{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.itj-reg-form .form-control{height:48px;border:1px solid var(--r-line);border-radius:12px;box-shadow:none;font-size:16px!important;padding:10px 14px 10px 42px;color:var(--r-text);background:#fff;transition:border-color .15s,box-shadow .15s}
.itj-reg-form .form-control:focus{border-color:var(--r-accent);box-shadow:0 0 0 4px rgba(21,101,192,.12);outline:0}
.itj-reg-form .itj-reg-field.ok .form-control{border-color:#86d0a1}
.itj-reg-form .itj-reg-field.bad .form-control,.itj-reg-form .has-error .form-control{border-color:#f19999}
.itj-reg-ico{position:absolute;left:14px;top:14px;width:20px;height:20px;color:#94a3b8;pointer-events:none}
.itj-reg-field.ok .itj-reg-ico{color:var(--r-ok)}
.itj-reg-cc{position:absolute;left:12px;top:0;height:48px;display:flex;align-items:center;gap:4px;font-weight:600;color:#374151;font-size:15px;pointer-events:none}
.itj-reg-phone .form-control{padding-left:62px}
.itj-reg-mark{position:absolute;right:14px;top:14px;width:20px;height:20px;color:var(--r-ok);display:none}
.itj-reg-field.ok .itj-reg-mark{display:block}
.itj-reg-eye{position:absolute;right:6px;top:4px;width:40px;height:40px;border:0;background:none;color:#64748b;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.itj-reg-eye:hover{background:#f1f5f9}
.itj-reg-eye svg{width:20px;height:20px}
.itj-reg-pass .itj-reg-mark{right:48px}
.itj-reg-hint{font-size:12.5px;margin-top:5px;color:var(--r-mute);min-height:0}
.itj-reg-hint.bad{color:var(--r-bad)}
.itj-reg-hint.good{color:var(--r-ok)}
.itj-reg-hint button{border:0;background:none;color:var(--r-accent);font-weight:700;padding:0;text-decoration:underline;cursor:pointer}
.itj-reg-meter{display:flex;gap:4px;margin-top:7px}
.itj-reg-meter i{flex:1;height:5px;border-radius:9px;background:#e5e7eb;transition:background .2s}
.itj-reg-meter[data-s="1"] i:nth-child(-n+1){background:#ef4444}
.itj-reg-meter[data-s="2"] i:nth-child(-n+2){background:#f59e0b}
.itj-reg-meter[data-s="3"] i:nth-child(-n+3){background:#22c55e}
.itj-reg-meter[data-s="4"] i{background:#16a34a}
.itj-reg-form .text-danger{font-size:12.5px;margin-top:5px}
/* newsletter switch */
.itj-reg-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;cursor:pointer;margin:0}
.itj-reg-switch span{font-size:14px;color:#374151;font-weight:500}
.itj-reg-switch small{display:block;color:var(--r-mute);font-weight:400}
.itj-reg-toggle{position:relative;width:46px;height:26px;flex:none;border-radius:99px;background:#cbd5e1;transition:background .2s}
.itj-reg-toggle:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .2s}
.itj-reg-switch.on .itj-reg-toggle{background:var(--r-ok)}
.itj-reg-switch.on .itj-reg-toggle:after{left:23px}
.itj-reg-hide{display:none!important}
/* agree + submit */
.itj-reg-form .buttons{margin:18px 0 0;display:block}
.itj-reg-form .buttons .pull-right{float:none!important;display:block;text-align:left}
.itj-reg-agree{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:#374151;margin:0 0 14px;cursor:pointer;font-weight:400}
.itj-reg-agree input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--r-accent)}
.itj-reg-agree.bad{color:var(--r-bad)}
.itj-reg-submit{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border:0!important;border-radius:12px!important;background:var(--r-accent)!important;color:#fff!important;font-size:16.5px!important;font-weight:700;letter-spacing:.2px;text-transform:none!important;box-shadow:0 6px 16px rgba(21,101,192,.25);transition:transform .1s,box-shadow .15s,opacity .15s}
.itj-reg-submit:hover{box-shadow:0 8px 20px rgba(21,101,192,.32)}
.itj-reg-submit:active{transform:translateY(1px)}
.itj-reg-submit.busy{opacity:.75;pointer-events:none}
.itj-reg-spin{width:18px;height:18px;border:2px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:itjRegSpin .7s linear infinite}
@keyframes itjRegSpin{to{transform:rotate(360deg)}}
@keyframes itjRegShake{0%,100%{transform:none}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.itj-reg-shake{animation:itjRegShake .3s 2}
.itj-reg-login{text-align:center;margin:16px 0 0;color:var(--r-mute);font-size:14px}
.itj-reg-login a{color:var(--r-accent);font-weight:700}
.itj-reg-safe{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--r-mute);font-size:12.5px;margin-top:10px}
.itj-reg-safe svg{width:14px;height:14px}
.itj-reg-page #content>.alert{border-radius:12px}
/* the OTP box fits the new look */
.itj-reg-form .itj-otp{border-radius:12px;margin-top:10px}
/* Login page (itj_login.js) */
.itj-reg-field{position:relative}
.itj-login-page #content{max-width:480px}
.itj-login-labelrow{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.itj-login-labelrow .control-label{padding:0 0 6px!important;font-weight:600;font-size:13.5px;color:#374151}
.itj-login-forgot{font-size:13px;font-weight:600;color:var(--r-accent)!important}
.itj-login-form .itj-reg-submit{margin-top:6px}
.itj-login-new{display:flex;gap:12px;align-items:center;margin-top:18px;padding:14px 16px;border:1px dashed #b9c8e8;border-radius:12px;background:#f7faff;color:var(--r-text)!important;text-decoration:none!important;transition:background .15s}
.itj-login-new:hover{background:#eef4ff}
.itj-login-new svg{width:28px;height:28px;color:var(--r-accent);flex:none}
.itj-login-new b{display:block;color:var(--r-accent);font-size:15px}
.itj-login-new small{display:block;color:var(--r-mute);font-size:12.5px;margin-top:2px}
@media (max-width:575px){
  .itj-reg-card{padding:20px 16px 18px;border-radius:14px;margin-top:0}
  .itj-reg-head h1{font-size:22px}
  .itj-reg-two{grid-template-columns:1fr}
  .itj-reg-perks li{font-size:12px;padding:5px 10px}
}
