@charset "UTF-8";

/* Authentication shell; legacy Bootstrap remains local for existing page markup. */
.login-v2 {
    --auth-green: #173e35;
    --auth-lime: #d6edaa;
    --auth-muted: #818994;
    --auth-border: #dce1e5;
    margin: 0;
    background: #fff;
    color: #28313d;
    font: 16px/1.5 Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.login-v2 *, .login-v2 *::before, .login-v2 *::after { box-sizing: border-box; }
.auth-layout { display: grid; grid-template-columns: 48.8% minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.auth-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(40px, 5vw, 80px); background: var(--auth-green); color: #fff; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 28px; font-size: 40px; line-height: 1; font-weight: 650; letter-spacing: -.8px; }
.auth-brand svg { width: 48px; height: 48px; flex: none; fill: none; stroke: var(--auth-lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-logo svg { width: clamp(180px, 20vw, 280px); height: clamp(180px, 20vw, 280px); }
.auth-main { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 64px clamp(24px, 6vw, 120px); }
.auth-main:focus { outline: none; }
.login-v2 .login-box { width: 100%; max-width: 520px; margin: 0; padding: 0; }
.auth-intro { margin-bottom: 46px; text-align: center; }
.auth-intro h1 { color: var(--auth-green); margin: 0 0 15px; font-size: clamp(26px, 2.9vw, 44px); line-height: 1.2; letter-spacing: -1.6px; font-weight: 650; }
.auth-intro p { color: var(--auth-muted); font-size: 19px; line-height: 1.5; margin: 0; }
.auth-content { width: 100%; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.auth-content form { margin: 0; }
.auth-content .login-title, .auth-content h1, .auth-content h2, .auth-content h3 { color: var(--auth-green); margin: 0 0 24px; font-size: 26px; line-height: 1.25; font-weight: 650; }
.auth-content .form-group { margin-bottom: 26px; }
.auth-content label { margin-bottom: 8px; font-weight: 500; font-size: 18px; }
.auth-content :is(input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], select, textarea, .form-control) {
    width: 100%; max-width: 100%; min-width: 0; height: 56px; padding: 14px 20px;
    border: 1px solid var(--auth-border); border-radius: 8px; background: #f4f5f6;
    color: #28313d; box-shadow: none; font: inherit; font-size: 16px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-content textarea { min-height: 100px; height: auto; }
.auth-content input::placeholder { color: var(--auth-muted); opacity: 1; }
.auth-content :is(input, select, textarea):focus { background: #fff; border-color: var(--auth-green); outline: none; box-shadow: 0 0 0 3px #173e351c; }
.auth-content :is(input[type="checkbox"], input[type="radio"]) { width: 20px; height: 20px; accent-color: var(--auth-green); vertical-align: middle; margin: 0 8px 0 0; flex: none; }
.auth-content .checkbox label { display: flex; align-items: center; padding-left: 0; font-weight: 400; }
.auth-content .checkbox input { position: static; margin-left: 0; }
.auth-content .auth-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 32px 0; font-size: 18px; }
.auth-options label { margin: 0; display: flex; align-items: center; font-weight: 400; }
.auth-content a { color: var(--auth-green); text-underline-offset: 3px; }
.auth-content a:hover { color: #356a53; }
.auth-content :is(button, input[type="submit"], input[type="button"], .btn) { font-family: inherit; font-size: 16px; }
.auth-content :is(input[type="submit"], button[type="submit"], .btn-primary, .btn-success, .btn-info, .btn-danger) {
    display: block; width: 100%; min-height: 58px; padding: 14px 24px; border: 1px solid var(--auth-green);
    border-radius: 8px; background: var(--auth-green); color: #fff; font-size: 20px; font-weight: 600;
    text-align: center; text-decoration: none; cursor: pointer; box-shadow: none; transition: background .18s, transform .18s;
}
.auth-content :is(input[type="submit"], button[type="submit"], .btn-primary, .btn-success, .btn-info, .btn-danger):hover { background: #245545; border-color: #245545; }
.auth-content :is(button, input, a):focus-visible, .auth-skip-link:focus-visible { outline: 3px solid #7cae59; outline-offset: 4px; }
.auth-content :is(button, input):disabled { opacity: .55; cursor: not-allowed; }
.auth-content .btn-link { padding: 10px 0; white-space: normal; text-decoration: underline; }
.auth-content .input-group-addon { color: #64796f; background: #f4f5f6; border-color: var(--auth-border); border-radius: 8px 0 0 8px; }
.auth-content .input-group .form-control { border-radius: 0 8px 8px 0; }
.auth-content .login-subtitle { margin: 20px 0 0; color: var(--auth-muted); font-size: 14px; }
.auth-content .login-or { text-align: center; color: var(--auth-muted); margin: 24px 0; }
.auth-content :is(.errortext, .alert-danger, .bx-auth-error) { display: block; padding: 14px 16px; margin: 0 0 22px; border: 1px solid #edd2ce; border-radius: 8px; background: #fff3f1; color: #a33527; font-size: 14px; }
.auth-content .auth-error { padding: 14px 16px; margin: 0 0 22px; border: 1px solid #edd2ce; border-radius: 8px; background: #fff3f1; color: #a33527; font-size: 14px; }
.auth-content .auth-error:empty { display: none; }
.auth-content [hidden] { display: none !important; }
.auth-content :is(.notetext, .alert-success) { display: block; padding: 14px 16px; margin: 0 0 22px; border: 1px solid #c9dec8; border-radius: 8px; background: #f0f7ee; color: #326345; }
.auth-content table { width: 100%; max-width: 100%; border-collapse: collapse; }
.auth-content td { padding: 8px 4px; vertical-align: middle; }
.auth-content td:first-child { padding-left: 0; }
.auth-content td:last-child { padding-right: 0; }
.auth-content .bx-auth { max-width: 100%; margin: 0; }
.auth-content img { max-width: 100%; height: auto; }
.auth-content .auth-password-wrap { position: relative; display: block; width: 100%; }
.auth-content .input-group .auth-password-wrap { display: table-cell; vertical-align: middle; }
.auth-content .input-group .auth-password-wrap > input { float: none; }
.auth-content .auth-password-wrap > input { padding-right: 56px; }
.auth-content .auth-password-toggle { position: absolute; right: 7px; top: 6px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #818994; cursor: pointer; }
.auth-password-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-content .auth-password-toggle:hover { color: var(--auth-green); background: #e8ede9; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-slash { display: block; }
.auth-eye-slash { display: none; }
.auth-note { margin: 36px 0 0; color: var(--auth-muted); font-size: 16px; line-height: 1.6; text-align: center; }
.auth-skip-link { position: absolute; z-index: 10001; left: 16px; top: -100px; padding: 12px 20px; background: #fff; color: var(--auth-green); border-radius: 6px; }
.auth-skip-link:focus { top: 16px; }
/* Bitrix CAPTCHA and recovery/registration forms use the same input system. */
.auth-content .bx-auth-captcha { margin: 18px 0; }
.auth-content .bx-auth-captcha img { display: block; margin-bottom: 12px; }
@media (max-width: 1200px) {
    .auth-main { padding: 48px 40px; }
    .auth-intro h1 { font-size: 32px; }
}
@media (max-width: 800px) {
    .auth-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .auth-brand { padding: 28px 32px 32px; }
    .auth-logo { font-size: 24px; gap: 16px; }
    .auth-logo svg { width: 100px; height: 100px; }
    .auth-main { padding: 44px 32px 40px; align-items: flex-start; }
    .auth-intro { text-align: left; margin-bottom: 32px; }
    .auth-intro h1 { font-size: 30px; letter-spacing: -.9px; margin-bottom: 12px; }
    .auth-intro p { font-size: 16px; }
    .auth-note { margin-top: 28px; font-size: 13px; }
}
@media (max-width: 420px) {
    .auth-brand { padding: 24px; }
    .auth-main { padding: 34px 24px; }
    .auth-intro h1 { font-size: 27px; }
    .auth-content .auth-options { font-size: 14px; gap: 12px; margin: 26px 0; }
    .auth-content .auth-options label { font-size: 14px; }
    .auth-content td { display: block; width: 100%; padding: 4px 0; }
    .auth-content tr { display: block; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .login-v2 * { transition: none !important; animation: none !important; } }
