* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.iv-auth-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #152238;
    background:
        radial-gradient(circle at 8% 10%, rgba(var(--rgba-default), .12), transparent 32%),
        radial-gradient(circle at 92% 88%, rgba(var(--rgba-default), .08), transparent 28%),
        #f4f7fb;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.iv-auth-page { min-height: 100vh; padding: 28px; display: grid; place-items: center; position: relative; }
.iv-auth-back {
    position: fixed; top: 22px; left: 24px; z-index: 20;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 13px; color: #50627b; background: rgba(255,255,255,.85);
    border: 1px solid rgba(148,163,184,.28); border-radius: 12px;
    box-shadow: 0 8px 28px rgba(15,23,42,.06); backdrop-filter: blur(14px);
}
.iv-auth-back:hover { color: var(--color-default); transform: translateY(-1px); }
.iv-auth-shell {
    width: min(1120px, 100%); min-height: 670px;
    display: grid; grid-template-columns: minmax(360px, .92fr) minmax(440px, 1.08fr);
    overflow: hidden; background: #fff; border: 1px solid rgba(148,163,184,.22);
    border-radius: 28px; box-shadow: 0 28px 80px rgba(15,23,42,.14);
}
.iv-auth-showcase {
    position: relative; overflow: hidden; padding: 40px;
    display: flex; flex-direction: column;
    color: #fff;
    background: linear-gradient(145deg, var(--color-default) 0%, var(--color-hover) 100%);
}
.iv-auth-showcase::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 34px 34px; pointer-events: none;
}
.iv-auth-showcase-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .3; }
.iv-auth-showcase-glow-one { width: 280px; height: 280px; right: -100px; top: -90px; background: #fff; }
.iv-auth-showcase-glow-two { width: 220px; height: 220px; left: -100px; bottom: -80px; background: #8be5ff; }
.iv-auth-brand, .iv-auth-mobile-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.iv-auth-brand { color: #fff; font-size: 18px; position: relative; z-index: 2; }
.iv-auth-brand:hover { color: #fff; }
.iv-auth-brand-logo {
    width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px;
    padding: 7px; background: rgba(255,255,255,.95); border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.iv-auth-brand-logo img, .iv-auth-mobile-brand img { width: 100%; height: 100%; object-fit: contain; }
.iv-auth-showcase-content { margin: auto 0; position: relative; z-index: 2; }
.iv-auth-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
    background: rgba(255,255,255,.11); font-size: 12px; font-weight: 700;
}
.iv-auth-showcase h1 { max-width: 500px; margin: 0 0 16px; color: #fff; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.045em; }
.iv-auth-showcase-content > p { max-width: 520px; margin: 0; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.75; }
.iv-auth-points { margin-top: 34px; display: grid; gap: 13px; }
.iv-auth-points div { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; }
.iv-auth-points i { width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255,255,255,.14); border-radius: 9px; font-size: 16px; }
.iv-auth-showcase-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.65); font-size: 11px; }
.iv-auth-showcase-footer span { display: inline-flex; align-items: center; gap: 6px; }
.iv-auth-form-panel { min-width: 0; padding: 44px clamp(30px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.98); }
.iv-auth-card { width: min(100%, 470px); margin: 0 auto; }
.iv-auth-card.auth-card-wide { width: min(100%, 620px); }
.iv-auth-card-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
.iv-auth-heading-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 46px; color: var(--color-default); background: rgba(var(--rgba-default), .1); border: 1px solid rgba(var(--rgba-default), .14); border-radius: 14px; font-size: 22px; }
.iv-auth-card-heading h2 { margin: 0 0 5px; color: #111c2e; font-size: 27px; line-height: 1.2; letter-spacing: -.035em; }
.iv-auth-card-heading p { margin: 0; color: #718096; font-size: 13px; line-height: 1.55; }
.iv-auth-mobile-brand { display: none; }
.iv-auth-card .form-label { margin-bottom: 7px; color: #34445b; font-size: 12px; font-weight: 700; }
.iv-auth-card .form-control, .iv-auth-card .form-select, .iv-auth-card .select2-container .select2-selection--single {
    min-height: 48px; border-color: #d9e2ee; border-radius: 12px; background: #fbfcfe; box-shadow: none;
}
.iv-auth-card .form-control { padding: 11px 14px; }
.iv-auth-card .form-control:focus, .iv-auth-card .form-select:focus {
    border-color: var(--color-default); background: #fff; box-shadow: 0 0 0 4px rgba(var(--rgba-default), .1);
}
.iv-auth-card .input-group-text { min-width: 46px; justify-content: center; border-color: #d9e2ee; border-radius: 12px 0 0 12px; background: #f2f6fb; }
.iv-auth-card .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 12px; }
.iv-auth-card .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.iv-auth-card .btn { min-height: 48px; border-radius: 12px; font-weight: 700; }
.iv-auth-card .btn-primary { border-color: var(--color-default); background: var(--color-default); box-shadow: 0 12px 24px rgba(var(--rgba-default), .2); }
.iv-auth-card .btn-primary:hover { border-color: var(--color-hover); background: var(--color-hover); transform: translateY(-1px); }
.iv-auth-google { border: 1px solid #dbe4ef !important; background: #fff !important; color: #334155 !important; box-shadow: 0 7px 20px rgba(15,23,42,.05); }
.iv-auth-google:hover { border-color: rgba(var(--rgba-default), .35) !important; background: rgba(var(--rgba-default), .04) !important; }
.iv-auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #9aa8bb; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.iv-auth-divider::before, .iv-auth-divider::after { content: ""; height: 1px; flex: 1; background: #e4eaf2; }
.iv-auth-footer-line { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e9eef5; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #7a899d; font-size: 13px; }
.iv-auth-footer-line a { color: var(--color-default); font-weight: 700; }
.iv-auth-info {
    display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 14px;
    color: #52637a; background: #f6f9fc; border: 1px solid #e1e8f0; border-radius: 13px; font-size: 12px; line-height: 1.55;
}
.iv-auth-info i { color: var(--color-default); font-size: 18px; margin-top: 1px; }
.iv-auth-card .form-check-input:checked { border-color: var(--color-default); background-color: var(--color-default); }
.iv-auth-card a { transition: .2s ease; }
.iv-auth-card .link-primary, .iv-auth-card a:not(.btn) { color: var(--color-default); }
.iv-auth-register-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.iv-auth-register-grid .iv-span-2 { grid-column: 1 / -1; }
.loader-bg { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; background: var(--color-default); transition: opacity .3s ease, visibility .3s ease; }
.loader-bg.is-hidden { opacity: 0; visibility: hidden; }
.iv-auth-loader, .iv-submit-loader { display: flex; gap: 7px; align-items: center; justify-content: center; }
.iv-auth-loader span, .iv-submit-loader span { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: ivAuthBounce .9s infinite ease-in-out; }
.iv-auth-loader span:nth-child(2), .iv-submit-loader span:nth-child(2) { animation-delay: .12s; }
.iv-auth-loader span:nth-child(3), .iv-submit-loader span:nth-child(3) { animation-delay: .24s; }
.iv-submit-loader span { background: var(--color-default); }
@keyframes ivAuthBounce { 0%, 80%, 100% { transform: scale(.65); opacity: .55; } 40% { transform: scale(1); opacity: 1; } }
.cf-turnstile { max-width: 100%; overflow: hidden; }
#tos_modal .modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(15,23,42,.18); }
#tos_modal .modal-header, #tos_modal .modal-footer { border-color: #e8edf4; }
@media (max-width: 900px) {
    .iv-auth-page { padding: 80px 18px 24px; }
    .iv-auth-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
    .iv-auth-showcase { display: none; }
    .iv-auth-form-panel { padding: 28px 24px 34px; }
    .iv-auth-mobile-brand { display: flex; margin: 0 auto 28px; justify-content: center; font-size: 17px; color: #172033; }
    .iv-auth-mobile-brand img { width: 42px; height: 42px; object-fit: contain; }
}
@media (max-width: 560px) {
    .iv-auth-page { padding-left: 12px; padding-right: 12px; }
    .iv-auth-back { top: 14px; left: 14px; }
    .iv-auth-shell { border-radius: 18px; }
    .iv-auth-form-panel { padding: 24px 18px 30px; }
    .iv-auth-card-heading h2 { font-size: 23px; }
    .iv-auth-register-grid { grid-template-columns: 1fr; }
    .iv-auth-register-grid .iv-span-2 { grid-column: auto; }
    .iv-auth-footer-line { align-items: flex-start; flex-direction: column; }
}
