/* MS-SHELL-V2 skin-10-auth — zone AUTH (REDESIGN-02). Draft by NZ2 (MacAir4), 15.11.2026.
   Loaded only with cookie msv2=dev (later =on after acceptance). Look only: no hidden elements, no text changes, CAPTCHA untouched.
   Containers: body.authorize (login Main.php, register MainRegister.php / MainRegister2.php, password reset MainPasswordReset.php,
   message popups MsgPopup.php / MsgPopupReset.php inside those pages), body.bodypage_not_found (NotFound.php),
   body.bodypage_no_permission (NoPermission.php).
   NOTE: the four body.authorize templates are standalone documents and do not include Header.php, so the msv2 loader is not printed
   there yet — see «ПОТРІБНА ПРАВКА ШАБЛОНУ» in reports/NZ2-REDESIGN-AUTH.md. Rules below are ready for when the loader is added. */

/* ---------- page + top bar (auth pages have their own bar, not the LMS shell) ---------- */
html.msv2 body.authorize{background:var(--ms-bg)!important;background-image:none!important;color:var(--ms-ink)}
html.msv2 body.authorize .menu-wrapper{background:var(--ms-surface);border-bottom:1px solid var(--ms-border);box-shadow:none}
html.msv2 body.authorize .menu-wrapper .nav-main__link{color:var(--ms-ink);font-weight:600}
html.msv2 body.authorize .menu-wrapper .nav-main__link:hover,
html.msv2 body.authorize .menu-wrapper .nav-main__link:focus-visible{color:var(--ms-navy-ink);text-decoration:underline}
html.msv2 body.authorize .menu-wrapper #login{background:var(--ms-surface);color:var(--ms-navy);border:1px solid var(--ms-border);border-radius:var(--ms-radius);padding:10px 16px;min-height:44px;display:inline-flex;align-items:center}
html.msv2 body.authorize .menu-wrapper .menu__toggle-btn span{background:var(--ms-navy)}
html.msv2 body.authorize .menu-wrapper .header-btn-contact{border-radius:var(--ms-radius)}

/* ---------- the card: login / reset ---------- */
html.msv2 body.authorize .form-authorize{background:transparent}
html.msv2 body.authorize .form-authorize .panel.login{background:var(--ms-surface)!important;border:1px solid var(--ms-border)!important;border-radius:var(--ms-radius-lg)!important;box-shadow:none!important;max-width:440px;width:calc(100% - 32px);margin-left:auto;margin-right:auto;padding:32px 28px;box-sizing:border-box}
html.msv2 body.authorize .form-authorize .panel.login h1,
html.msv2 body.authorize .form-authorize .login-form__subsection-title-title{color:var(--ms-ink);font-weight:700;letter-spacing:0}
html.msv2 body.authorize .form-authorize .login-subtitle,
html.msv2 body.authorize .form-authorize .reset-subtitle{color:var(--ms-muted);font-size:15px;line-height:1.5}
html.msv2 body.authorize .form-authorize .reset-note{background:var(--ms-blue-soft);border:1px solid var(--ms-border);border-radius:var(--ms-radius);color:var(--ms-ink)}
html.msv2 body.authorize .form-authorize .reset-note .fa{color:var(--ms-navy)}
html.msv2 body.authorize .form-authorize .sc-esg-note{background:var(--ms-blue-soft)!important;border-color:var(--ms-border)!important;color:var(--ms-ink)!important}

/* inputs (login, reset, register) */
html.msv2 body.authorize .form-authorize .form-control,
html.msv2 body.authorize .register-panel .checkout-form-input-block input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
html.msv2 body.authorize .register-panel .checkout-form-input-block select{background:var(--ms-surface);border:1px solid var(--ms-border);border-radius:var(--ms-radius);color:var(--ms-ink);min-height:48px;font-size:16px;box-shadow:none}
html.msv2 body.authorize .form-authorize .form-control::placeholder,
html.msv2 body.authorize .register-panel .checkout-form-input-block input::placeholder{color:var(--ms-muted);opacity:1}
html.msv2 body.authorize .form-authorize .form-control:focus,
html.msv2 body.authorize .register-panel .checkout-form-input-block input:focus,
html.msv2 body.authorize .register-panel .checkout-form-input-block select:focus{border-color:var(--ms-navy);outline:2px solid var(--ms-blue-soft);outline-offset:0;box-shadow:none}
html.msv2 body.authorize .form-authorize .input-icon{color:var(--ms-muted)}

/* remember-me */
html.msv2 body.authorize .form-authorize .remember-option{color:var(--ms-ink);min-height:44px;display:inline-flex;align-items:center;gap:10px;cursor:pointer}
html.msv2 body.authorize .form-authorize .check-box{border:1px solid var(--ms-border);border-radius:6px;background:var(--ms-surface)}

/* primary action of the auth screens = navy (orange is reserved for buy/continue/pay) */
html.msv2 body.authorize .form-authorize .btn-enter,
html.msv2 body.authorize .form-authorize .btn-reset,
html.msv2 body.authorize .register-panel .form_block button[type=submit],
html.msv2 body.authorize .register-panel .form_block input[type=submit]{background:var(--ms-navy)!important;background-image:none!important;color:var(--ms-surface)!important;border:1px solid var(--ms-navy)!important;border-radius:var(--ms-radius)!important;box-shadow:none!important;min-height:48px;font-weight:700;transform:none!important}
html.msv2 body.authorize .form-authorize .btn-enter:hover,
html.msv2 body.authorize .form-authorize .btn-reset:hover,
html.msv2 body.authorize .register-panel .form_block button[type=submit]:hover,
html.msv2 body.authorize .register-panel .form_block input[type=submit]:hover{background:var(--ms-navy-ink)!important;border-color:var(--ms-navy-ink)!important}
html.msv2 body.authorize .form-authorize .btn-enter:focus-visible,
html.msv2 body.authorize .form-authorize .btn-reset:focus-visible,
html.msv2 body.authorize .register-panel .form_block button[type=submit]:focus-visible{outline:3px solid var(--ms-blue-soft);outline-offset:2px}

/* secondary actions: white with border */
html.msv2 body.authorize .form-authorize .btn-cancel,
html.msv2 body.authorize .form-authorize .btn-forgot,
html.msv2 body.authorize .google-login .btn{background:var(--ms-surface)!important;color:var(--ms-ink)!important;border:1px solid var(--ms-border)!important;border-radius:var(--ms-radius)!important;box-shadow:none!important;min-height:48px}
html.msv2 body.authorize .form-authorize .btn-cancel:hover,
html.msv2 body.authorize .form-authorize .btn-forgot:hover,
html.msv2 body.authorize .google-login .btn:hover{background:var(--ms-soft)!important}
html.msv2 body.authorize .google-login p,
html.msv2 body.authorize .form-authorize .divider,
html.msv2 body.authorize .register-panel .or-divider{color:var(--ms-muted)!important}
html.msv2 body.authorize .form-authorize .login-noacc{color:var(--ms-muted)!important}
html.msv2 body.authorize .form-authorize .login-noacc a,
html.msv2 body.authorize .register-panel .have-account a,
html.msv2 body.authorize .register-panel .forgot-password-link{color:var(--ms-navy);font-weight:700;text-decoration:underline}
html.msv2 body.authorize .security-badges{color:var(--ms-muted);font-size:12px}
html.msv2 body.authorize .security-badges .fa{color:var(--ms-green)}

/* ---------- registration (personal and ?account=business) ---------- */
html.msv2 body.authorize .register-section{background:transparent}
html.msv2 body.authorize .register-intro .eyebrow{color:var(--ms-orange-ink);font-weight:700;letter-spacing:.04em}
html.msv2 body.authorize .register-intro h1,
html.msv2 body.authorize .register-intro h2{color:var(--ms-ink)}
html.msv2 body.authorize .register-intro .lead{color:var(--ms-muted)}
html.msv2 body.authorize .register-panel .checkout-in{background:var(--ms-surface)!important;border:1px solid var(--ms-border)!important;border-radius:var(--ms-radius-lg)!important;box-shadow:none!important}
html.msv2 body.authorize .register-panel .card-head{border-bottom:1px solid var(--ms-border);color:var(--ms-ink)}
html.msv2 body.authorize .register-panel .register-back{color:var(--ms-navy);min-height:44px;display:inline-flex;align-items:center}
html.msv2 body.authorize .register-panel .checkout-form-input-block label{color:var(--ms-ink);font-size:14px;font-weight:600}
html.msv2 body.authorize .register-panel .next-steps{background:var(--ms-soft);border:1px solid var(--ms-border);border-radius:var(--ms-radius);color:var(--ms-ink)}
html.msv2 body.authorize .register-panel .next-steps .ns-title{color:var(--ms-ink);font-weight:700}
html.msv2 body.authorize .register-panel .next-steps .ns-num{background:var(--ms-navy);color:var(--ms-surface);border-radius:50%}
html.msv2 body.authorize .register-panel .next-steps .ns-txt{color:var(--ms-ink)}
html.msv2 body.authorize .register-panel .have-account{color:var(--ms-muted)}

/* register: "already registered / validation" dialog (sc-modal) */
html.msv2 body.authorize .sc-modal{background:var(--ms-surface);border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg);box-shadow:none;max-width:calc(100vw - 32px)}
html.msv2 body.authorize .sc-modal__header{border-bottom:1px solid var(--ms-border)}
html.msv2 body.authorize .sc-modal__icon{color:var(--ms-amber)}
html.msv2 body.authorize .sc-modal__title{color:var(--ms-ink);font-weight:700}
html.msv2 body.authorize .sc-modal__body{color:var(--ms-ink)}
html.msv2 body.authorize .sc-modal__notice{background:var(--ms-amber-soft);color:var(--ms-amber);border-radius:var(--ms-radius)}
html.msv2 body.authorize .sc-modal__close{min-width:44px;min-height:44px;color:var(--ms-muted)}
html.msv2 body.authorize .sc-modal__footer .sc-btn{min-height:44px;border-radius:var(--ms-radius);font-weight:700}
html.msv2 body.authorize .sc-modal__footer .sc-btn--primary{background:var(--ms-navy);color:var(--ms-surface);border:1px solid var(--ms-navy)}
html.msv2 body.authorize .sc-modal__footer .sc-btn--secondary{background:var(--ms-surface);color:var(--ms-ink);border:1px solid var(--ms-border)}

/* ---------- message popups on auth pages (expired / invalid link, wrong password, reset sent) ---------- */
html.msv2 body.authorize .message .content{background:var(--ms-surface);border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg);box-shadow:none;max-width:calc(100vw - 32px)}
html.msv2 body.authorize .message .header{color:var(--ms-ink);border-bottom:1px solid var(--ms-border)}
html.msv2 body.authorize .message .body,
html.msv2 body.authorize .message .modal-body{color:var(--ms-ink);font-size:15px;line-height:1.5}
html.msv2 body.authorize .message .toggle{min-width:44px;min-height:44px;color:var(--ms-muted)}
html.msv2 body.authorize .message .controls .btn{min-height:44px;border-radius:var(--ms-radius);background:var(--ms-navy);color:var(--ms-surface);border:1px solid var(--ms-navy);background-image:none}
html.msv2 body.authorize .password-reset-card{background:var(--ms-surface);border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg);box-shadow:none;max-width:calc(100vw - 32px)}
html.msv2 body.authorize .password-reset-icon-wrap{background:var(--ms-blue-soft)}
html.msv2 body.authorize .password-reset-icon{color:var(--ms-navy)}
html.msv2 body.authorize .password-reset-check{background:var(--ms-green);color:var(--ms-surface)}
html.msv2 body.authorize .password-reset-content{color:var(--ms-ink)}
html.msv2 body.authorize .password-reset-note{color:var(--ms-muted)}
html.msv2 body.authorize .password-reset-close{min-width:44px;min-height:44px;color:var(--ms-muted)}
html.msv2 body.authorize .password-reset-button{background:var(--ms-navy);color:var(--ms-surface);border:1px solid var(--ms-navy);border-radius:var(--ms-radius);min-height:44px;background-image:none;box-shadow:none}

/* ---------- inside the LMS shell: NotFound / NoPermission ---------- */
html.msv2 body.bodypage_not_found h1,
html.msv2 body.bodypage_no_permission h1{color:var(--ms-ink);font-weight:700;font-size:24px;line-height:1.3}
html.msv2 body.bodypage_not_found h4,
html.msv2 body.bodypage_no_permission p{color:var(--ms-muted)}

/* ---------- responsive ---------- */
@media (max-width:480px){
  html.msv2 body.authorize .form-authorize .panel.login{padding:24px 16px;width:calc(100% - 24px)}
  html.msv2 body.authorize .register-panel .checkout-in{border-radius:var(--ms-radius)!important}
  html.msv2 body.authorize .menu-wrapper .nav-main__link{min-height:44px;display:flex;align-items:center}
}
@media (max-width:360px){
  html.msv2 body.authorize .form-authorize .panel.login h1{font-size:22px}
}

/* Native auth headers contain more links than fit on tablet widths. */
html.msv2 body.authorize .menu-wrapper{box-sizing:border-box!important;max-width:100%!important;gap:12px!important;flex-wrap:wrap!important}
html.msv2 body.authorize .menu-wrapper>.menu-block{min-width:0!important;max-width:100%!important}
html.msv2 body.authorize .menu-wrapper>.menu-block:first-child img{max-width:180px!important;object-fit:contain!important}
@media(max-width:1100px){
 html.msv2 body.authorize .menu-wrapper{padding:12px 16px!important}
 html.msv2 body.authorize .menu-wrapper .menu__toggle-btn{display:block!important;min-width:44px;min-height:44px;padding:10px!important;border:1px solid var(--ms-border);border-radius:8px;background:var(--ms-surface)}
 html.msv2 body.authorize .menu-wrapper .nav-main{display:none!important}
 html.msv2 body.authorize .menu-wrapper .nav-main.active{display:flex!important;flex-direction:column!important;position:fixed!important;top:76px!important;right:12px!important;left:auto!important;width:min(300px,calc(100vw - 24px))!important;max-height:calc(100dvh - 90px)!important;overflow:auto!important;padding:12px!important;background:var(--ms-surface)!important;border:1px solid var(--ms-border)!important;border-radius:12px!important;z-index:1500!important;box-shadow:0 8px 28px #123a5c18!important}
 html.msv2 body.authorize .menu-wrapper .nav-main__link{min-height:44px;display:flex;align-items:center;white-space:normal}
}
@media(max-width:400px){html.msv2 body.authorize .menu-wrapper>.menu-block:first-child img{max-width:110px!important;height:auto!important}}
/* Forms appear complete; staged legacy entrance fades hid the submit at first paint. */
html.msv2 body.authorize .checkout-in :is(.card-head,.google-login,.or-divider,.checkout-form-input-row,.checkout-form-btn-checkout,.warning,.next-steps,.have-account,.security-badges){animation:none!important;opacity:1!important;transform:none!important}

/* LMSV2-NIGHT-01 (AU4 MacAir4, 16.11.2026): sign-in / register / password reset to the 16.11 mock-up - private preview only.
   Look only: no field, form or button behaviour changed. */
@layer ms-typography {
  /* titles not bigger than the logo (owner correction 5: h1 20/18); were 24px (login), 22px (reset), 27px (register) */
  html.msv2 body.authorize .login-card h1,
  html.msv2 body.authorize .reset-card h1,
  html.msv2 body.authorize .reg-compact-title{font-size:20px!important;font-weight:500!important;line-height:1.3!important}
  /* the header already shows the logo; the second logo inside the card is a duplicate (owner correction 4) */
  html.msv2 body.authorize .login-card > img.logo,
  html.msv2 body.authorize .login-card img.logo,
  html.msv2 body.authorize .card-head img.reg-compact-logo{display:none!important}
  /* calm buttons and captions: no capitals (LOG IN, CREATE A FREE ACCOUNT, YOUR DETAILS, SSL SECURED) */
  html.msv2 body.authorize .btn-enter,
  html.msv2 body.authorize .checkout-form-btn-checkout,
  html.msv2 body.authorize .checkout-form-btn-checkout span,
  html.msv2 body.authorize .or-divider,
  html.msv2 body.authorize .security-badges span{text-transform:none!important;letter-spacing:0!important}
  /* controls at the mock-up height 44px (were 52px) */
  html.msv2 body.authorize input.form-control:not([type=checkbox]):not([type=radio]){height:44px!important;min-height:44px!important}
  html.msv2 body.authorize .btn-enter,
  html.msv2 body.authorize .checkout-form-btn-checkout{min-height:44px!important;height:44px!important}
  /* "Register" link: orange is reserved for buying in the mock-up */
  html.msv2 body.authorize .login-noacc a{color:var(--ms-navy)!important}
}
