/* v2 account group: login, register, OTP, reset/change password, profile, terms, privacy, blogs. */

/* ---------- auth layout ---------- */
body.v2 .v2-auth { box-sizing: border-box; }
body.v2 .v2-auth *, body.v2 .v2-account *, body.v2 .v2-blog * { box-sizing: border-box; }
.v2-auth-art h2 { color: var(--v2-white); }
.v2-auth-art ul { font-size: 16px; }
.v2-auth-art .v2-i { flex: none; }
.v2-auth-in h1 { color: var(--v2-ink); }
.v2-auth-in h1 + .v2-lead-s { margin: 0 0 26px; color: var(--v2-ink-2); }
.v2-auth-in .v2-row-between { margin: 16px 0 22px; }
.v2-auth-in .v2-row-between a { color: var(--v2-navy-2); }
.v2-auth-in .v2-or { margin: 26px 0 16px; text-align: center; }
.v2-auth-in .v2-fine a { color: var(--v2-navy-2); font-weight: 650; }
.v2-authlangs a.v2-on { background: var(--v2-ground); }
.v2-auth-in .v2-state-ico { margin: 0 0 22px; width: 64px; height: 64px; }
.v2-auth-in .v2-state-ico .v2-i { width: 30px; height: 30px; }
.v2-auth-in .v2-btn + .v2-fine { margin-top: 16px; }

/* ---------- sign-in page: centred card, no banner ---------- */
.v2-signin { background: var(--v2-ground); padding: 72px 18px 96px; display: flex; justify-content: center; align-items: flex-start; min-height: calc(100vh - 76px); box-sizing: border-box; }
.v2-signin-card { width: 100%; max-width: 460px; background: var(--v2-white); border: 1px solid var(--v2-line); border-radius: 20px; box-shadow: 0 24px 60px -30px rgba(0,24,64,.35); padding: 40px 40px 32px; box-sizing: border-box; }
.v2-signin-card *, .v2-signin-card *::before, .v2-signin-card *::after { box-sizing: border-box; }
.v2-signin-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--v2-navy); color: var(--v2-yellow); display: grid; place-items: center; margin-bottom: 22px; }
.v2-signin-ico .v2-i { width: 26px; height: 26px; }
.v2-signin-card h1 { margin: 0 0 6px; font: 800 30px/1.1 var(--v2-font); color: var(--v2-ink); letter-spacing: -.01em; }
.v2-signin-sub { margin: 0 0 28px; color: var(--v2-ink-2); font-size: 15px; }
.v2-signin-form { display: grid; gap: 18px; }
.v2-signin-field label { display: block; font-size: 13px; font-weight: 700; color: var(--v2-ink); margin: 0 0 8px; }
.v2-signin-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v2-signin-label a { font-size: 13px; font-weight: 650; color: var(--v2-navy-2); text-decoration: none; margin-bottom: 8px; }
.v2-signin-label a:hover { text-decoration: underline; }
.v2-signin-input { position: relative; }
.v2-signin-input > .v2-i { position: absolute; inset-inline-start: 14px; top: 26px; transform: translateY(-50%); width: 18px; height: 18px; color: #7a879b; pointer-events: none; }
.v2-signin-input input { width: 100%; height: 52px; border: 1.5px solid var(--v2-line); border-radius: 12px; background: var(--v2-white); padding: 0 16px 0 44px; font: 500 15px/1 var(--v2-font); color: var(--v2-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
html[dir="rtl"] .v2-signin-input input { padding: 0 44px 0 16px; }
.v2-signin-input input::placeholder { color: #9aa5b5; }
.v2-signin-input input:focus { border-color: var(--v2-navy-2); box-shadow: 0 0 0 4px rgba(0,53,128,.12); }
.v2-signin-input input.error { border-color: var(--v2-bad); }
.v2-signin-eye { position: absolute; inset-inline-end: 6px; top: 26px; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; color: #7a879b; cursor: pointer; display: grid; place-items: center; }
.v2-signin-eye:hover, .v2-signin-eye[aria-pressed="true"] { color: var(--v2-navy); background: var(--v2-ground); }
.v2-signin-input input[type="password"], .v2-signin-input input[name="password"] { padding-inline-end: 52px; }
.v2-signin-go { margin-top: 6px; height: 54px; font-size: 16px; }
.v2-signin-forgot { margin-top: 18px; border: 1px solid var(--v2-line); background: var(--v2-ground); border-radius: 14px; padding: 16px; }
.v2-signin-forgot p { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--v2-ink); }
.v2-signin-forgot-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
html[dir="rtl"] .v2-signin-new .v2-arrow { transform: scaleX(-1); }
.v2-signin-forgot-row .v2-btn { height: 52px; }
.v2-signin-new { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--v2-line); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--v2-ink-2); }
.v2-signin-new a { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; color: var(--v2-navy-2); text-decoration: none; }
.v2-signin-new a:hover { text-decoration: underline; }
.v2-signin-new .v2-i { width: 15px; height: 15px; }
body.v2 .v2-signin label.error { display: block; color: var(--v2-bad) !important; font-size: 13px !important; font-weight: 600; margin: 6px 0 0; }
@media (max-width: 520px) {
  .v2-signin { padding: 32px 14px 56px; }
  .v2-signin-card { padding: 28px 22px 24px; border-radius: 16px; }
  .v2-signin-card h1 { font-size: 26px; }
  .v2-signin-forgot-row { grid-template-columns: 1fr; }
}

.v2-signin-card.v2-signin-wide { max-width: 580px; }
.v2-signin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.v2-signin-phone .iti { display: block; width: 100%; }
.v2-signin-phone input { padding-inline-start: 16px; }
.v2-signin-phone .iti--separate-dial-code input { padding-left: 96px !important; }
.v2-signin-terms { align-items: center; font-size: 14px; color: var(--v2-ink-2); }
.v2-signin-terms label { display: inline; margin: 0 4px 0 0; font-weight: 500; color: var(--v2-ink-2); }
.v2-signin-card .v2-otp-one { margin: 0; height: 60px; background: var(--v2-ground); }
.v2-signin-card .v2-alert { margin: -8px 0 20px; }
.v2-signin-new .v2-linkbtn { font: 750 15px/1 var(--v2-font); color: var(--v2-navy-2); background: none; border: 0; cursor: pointer; }
.v2-signin-new .v2-linkbtn:hover { text-decoration: underline; }
@media (max-width: 520px) { .v2-signin-grid { grid-template-columns: 1fr; } }

/* forgot password (Bootstrap collapse) */
.v2-forgot { margin-top: 18px; }
.v2-forgot-in { border: 1px solid var(--v2-line); background: var(--v2-ground); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.v2-forgot-in .v2-btn { height: 50px; }

/* one-field OTP entry, styled like the code boxes */
.v2-otp-one { width: 100%; height: 64px; text-align: center; font: 800 28px/1 var(--v2-font); letter-spacing: .5em; padding: 0 0 0 .5em; border: 1.5px solid var(--v2-line); border-radius: 12px; background: var(--v2-white); color: var(--v2-ink); outline: none; margin: 4px 0 18px; }
html[dir="rtl"] .v2-otp-one { direction: ltr; }
.v2-otp-one:focus { border-color: var(--v2-navy-2); box-shadow: 0 0 0 3px rgba(0,53,128,.12); }
.v2-otp-one::placeholder { color: #b3bdcc; }

/* alerts (reset-password server error) */
.v2-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 0 0 18px; }
.v2-alert .v2-i { width: 18px; height: 18px; margin-top: 1px; }
.v2-alert.v2-bad { background: #fde8e4; color: var(--v2-bad); }

/* jquery.validate messages: the page scripts add Bootstrap's .text-white/.small, readable on the old dark forms only */
body.v2 .v2-auth-form label.error, body.v2 .v2-account label.error { display: block; color: var(--v2-bad) !important; font-size: 13px !important; font-weight: 600; margin: 6px 0 0; text-transform: none; letter-spacing: 0; }
body.v2 .v2-auth-form .v2-in.small, body.v2 .v2-auth-form .v2-otp-one.small { font-size: 15px; }
body.v2 .v2-auth-form .v2-otp-one.small { font-size: 28px; }
body.v2 .v2-in.error { border-color: var(--v2-bad); }

/* intl-tel-input on white forms */
body.v2 .v2-auth .iti, body.v2 .v2-account .iti { display: block; width: 100%; }
body.v2 .v2-auth .iti__selected-dial-code, body.v2 .v2-account .iti__selected-dial-code { color: var(--v2-ink) !important; font-weight: 650; }
body.v2 .v2-auth .iti--separate-dial-code .iti__selected-flag, body.v2 .v2-account .iti--separate-dial-code .iti__selected-flag { background: var(--v2-ground); border-radius: 12px 0 0 12px; }
html[dir="rtl"] body.v2 .v2-auth .iti--separate-dial-code .iti__selected-flag, html[dir="rtl"] body.v2 .v2-account .iti--separate-dial-code .iti__selected-flag { border-radius: 0 12px 12px 0; }
body.v2 .iti__country-list { color: var(--v2-ink); z-index: 20; max-width: min(360px, 86vw); white-space: normal; }

/* terms checkbox on register */
.v2-tick a { color: var(--v2-navy-2); font-weight: 650; }
.v2-tick label.error { flex-basis: 100%; order: 3; }
.v2-tick { flex-wrap: wrap; }
.v2-tick > span { flex: 1; min-width: 0; }

/* register modals (Bootstrap) */
body.v2 .v2-modal .modal-content { border-radius: 16px; border: 0; color: var(--v2-ink); }
body.v2 .v2-modal .modal-title { font-weight: 800; font-size: 19px; }
body.v2 .v2-modal .modal-body { font-size: 15px; }
body.v2 .v2-modal .modal-footer { gap: 8px; }
body.v2 .v2-modal .v2-btn { height: 44px; }

/* ---------- account pages ---------- */
.v2-account .v2-side .v2-me { min-width: 0; }
.v2-account .v2-me > div { min-width: 0; }
.v2-account .v2-me b, .v2-account .v2-me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-me .v2-av { flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; text-transform: uppercase; }
.v2-account .v2-box h2 { color: var(--v2-ink); }
.v2-account .v2-form-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.v2-readonly { display: flex; align-items: center; min-height: 50px; border: 1.5px dashed var(--v2-line); border-radius: 12px; padding: 0 14px; font-size: 15px; color: var(--v2-ink-2); overflow-wrap: anywhere; }
.v2-pband .v2-title h1 { color: var(--v2-white); }
.v2-pband.v2-slim { padding: 34px 0; }
.v2-pband.v2-slim .v2-title h1 { margin-bottom: 0; }

/* ---------- content pages (terms, privacy) ---------- */
.v2-doc-lay.v2-doc-one { grid-template-columns: minmax(0, 1fr); }
.v2-doc-one .v2-article { margin-inline: auto; width: 100%; }
.v2-article { font-size: 17px; line-height: 1.7; color: #26324a; overflow-wrap: anywhere; }
.v2-article ul, .v2-article ol { padding-inline-start: 22px; margin: 0 0 14px; }
.v2-article li { margin-bottom: 6px; }
.v2-article h2, .v2-article h3 { color: var(--v2-ink); }
.v2-article h3 { font-size: 19px; font-weight: 780; margin: 28px 0 10px; }
.v2-article img { height: auto; }
.v2-article table { display: block; max-width: 100%; overflow-x: auto; }

/* ---------- blogs ---------- */
.v2-blog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.v2-post { background: var(--v2-white); border: 1px solid var(--v2-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.v2-post-img { position: relative; height: 260px; background: var(--v2-ground); overflow: hidden; }
.v2-post-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.v2-post-b { padding: 22px 24px 26px; }
.v2-post-date { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--v2-ink-2); }
.v2-post-date .v2-i { width: 15px; height: 15px; color: var(--v2-navy-2); }
.v2-post h2 { font-size: 21px; font-weight: 780; margin: 10px 0 10px; line-height: 1.25; color: var(--v2-ink); }
.v2-post-txt { font-size: 15px; color: var(--v2-ink-2); overflow-wrap: anywhere; }
.v2-post-txt p { margin: 0 0 8px; }

@media (max-width: 1080px) {
  .v2-auth-art ul { margin-top: 18px; }
}
@media (max-width: 720px) {
  .v2-auth-art { min-height: 0; padding: 30px 18px; }
  .v2-auth-art h2 { font-size: 28px; }
  .v2-auth-in h1 { font-size: 28px; }
  .v2-forgot-in { grid-template-columns: 1fr; }
  .v2-blog { grid-template-columns: 1fr; }
  .v2-post-img { height: 200px; }
  .v2-otp-one { font-size: 24px; letter-spacing: .35em; }
  .v2-article { font-size: 16px; }
  .v2-account .v2-box { padding: 18px; }
}
