/* Auth pages (login / registration) */
.auth, .auth * { box-sizing: border-box; }
.auth { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: #2f3a4a; font-family: 'Noto Sans Georgian', 'Noto Sans', sans-serif; }
.auth a { color: #e9552a; }
.auth a:hover { color: #c8431b; }
.auth button { font-family: inherit; cursor: pointer; }
.auth .hidden { display: none !important; }
.auth .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.auth-header { height: 84px; flex-shrink: 0; padding: 0 120px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef0f3; }
.auth-header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.auth-header__logo span { font-family: 'Noto Sans', sans-serif; font-size: 30px; font-weight: 800; font-style: italic; letter-spacing: -0.8px; color: #2f3a4a; }
.auth-header__logo-img { display: block; max-height: 48px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.auth-header__actions { display: flex; align-items: center; gap: 14px; }
.auth-lang { display: flex; gap: 4px; padding: 4px; border: 1px solid #e3e6eb; border-radius: 12px; }
.auth-lang__btn { height: 36px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #5b6573; font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.auth-lang__btn.is-active { background: #fdede7; color: #d24a1f; font-weight: 700; }
.auth .auth-admin-link { height: 46px; padding: 0 18px; display: flex; align-items: center; gap: 8px; border: 1px solid #2f3a4a; border-radius: 12px; color: #2f3a4a; text-decoration: none; font-size: 14px; font-weight: 700; }
.auth .auth-admin-link:hover { color: #2f3a4a; background: #f6f7f9; }
.auth-footer { height: 52px; flex-shrink: 0; padding: 0 120px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eef0f3; font-size: 13px; color: #6b7482; }

/* main */
.auth-main { flex-grow: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 40px 120px; display: flex; align-items: center; justify-content: space-between; gap: 72px; }
.auth-panel { width: 560px; max-width: 100%; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.auth-panel__head { display: flex; flex-direction: column; gap: 12px; }
.auth-badge { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fdede7; color: #c8431b; font-size: 13px; font-weight: 600; }
.auth-title { margin: 0; font-size: 42px; line-height: 1.15; font-weight: 800; text-transform: uppercase; color: #2f3a4a; }
.auth-subtitle { margin: 0; font-size: 16px; color: #5b6573; }

.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 60px; border: 1px solid #e3e6eb; border-radius: 14px; overflow: hidden; }
.auth-tabs__tab { border: 0; background: #fff; color: #2f3a4a; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.auth-tabs__tab.is-active { background: #fdede7; color: #d24a1f; }

/* forms */
.auth-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.auth-field { position: relative; display: block; }
.auth-input, .auth-phone { width: 100%; height: 60px; border: 1px solid #e3e6eb; border-radius: 14px; background: #fff; font-family: inherit; font-size: 16px; color: #2f3a4a; }
.auth-input { padding: 0 22px; }
.auth-field--password .auth-input { padding-right: 64px; }
.auth input::placeholder { color: #8a93a0; }
.auth-input:focus, .auth-phone:focus-within { outline: 2px solid #e9552a; outline-offset: -1px; border-color: transparent; }
.auth-input.error, .auth-input.inValid { border-color: #d93025; }
.auth label.error { display: block; margin: 6px 4px 0; font-size: 13px; color: #d93025; }
.auth-eye { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: #2f3a4a; display: flex; align-items: center; justify-content: center; }
.auth-eye.is-shown { color: #e9552a; }
.auth-phone { display: flex; align-items: center; }
.auth-phone__code { width: 132px; flex-shrink: 0; padding-left: 10px; }
.auth-phone__input { flex-grow: 1; min-width: 0; height: 56px; padding: 0 22px 0 8px; border: 0; background: transparent; font-family: inherit; font-size: 16px; color: #2f3a4a; }
.auth-phone__input:focus { outline: 0; }

/* country code (Select2 - same widget as the rest of the site) */
.auth .auth-phone .select2-container { width: 100% !important; }
.auth .auth-phone .select2-container--default .select2-selection--single { height: 56px; background: transparent; border: 0; border-radius: 0; }
.auth .auth-phone .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 12px; padding-right: 28px; line-height: 56px; font-size: 16px; color: #2f3a4a; }
.auth .auth-phone .select2-container--default .select2-selection--single .select2-selection__arrow { height: 56px; right: 6px; }
.auth .auth-phone .select2-container--default.select2-container--focus .select2-selection--single { outline: 0; }
.auth .select2-dropdown.country-code-select2 { width: 170px !important; border: 1px solid #e3e6eb; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px -12px rgba(47, 58, 74, .35); font-family: inherit; font-size: 15px; }
.auth .select2-dropdown.country-code-select2 .select2-search--dropdown { padding: 8px; }
.auth .select2-dropdown.country-code-select2 .select2-search__field { height: 36px; border: 1px solid #e3e6eb; border-radius: 8px; padding: 0 10px; font-family: inherit; }
.auth .select2-dropdown.country-code-select2 .select2-search__field:focus { outline: 2px solid #e9552a; outline-offset: -1px; border-color: transparent; }
.auth .select2-dropdown.country-code-select2 .select2-results__option { padding: 8px 12px; }
.auth .select2-dropdown.country-code-select2 .select2-results__option--highlighted[aria-selected], .auth .select2-dropdown.country-code-select2 .select2-results__option--highlighted.select2-results__option--selectable { background: #fdede7; color: #d24a1f; }
.auth .select2-dropdown.country-code-select2 .select2-results__option[aria-selected=true] { background: #f6f7f9; }
.auth-check { display: flex; align-items: center; gap: 10px; padding: 2px 0; font-size: 14px; color: #5b6573; }
.auth-check input { width: 18px; height: 18px; margin: 0; accent-color: #e9552a; }
.auth-error { margin: 0; font-size: 14px; color: #d93025; }
.auth-error ul { margin: 0; padding-left: 18px; }
.auth-forgot { display: flex; justify-content: flex-end; }
.auth-forgot a { font-size: 14px; font-weight: 600; text-decoration: none; color: #d24a1f; }
.auth-btn { height: 60px; border: 0; border-radius: 14px; background: #e9552a; color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.auth-btn:hover { background: #d24a1f; }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-btn--ghost { width: 240px; flex-shrink: 0; border: 1px solid #c9ced6; background: #fff; color: #2f3a4a; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.auth-btn--ghost:hover { background: #f6f7f9; }
.auth-btn--ghost strong { font-weight: 800; }
.auth-actions { display: flex; gap: 16px; }
.auth-actions .auth-btn:not(.auth-btn--ghost) { flex-grow: 1; }
.auth-switch { margin: 4px 0 0; text-align: center; font-size: 15px; color: #5b6573; }
.auth-switch__link { border: 0; background: transparent; padding: 4px; font-size: 15px; font-weight: 700; color: #2f3a4a; text-decoration: underline; }

/* visual */
.auth-visual { flex: 1 1 auto; max-width: 568px; height: 560px; position: relative; }
.auth-visual__dots { position: absolute; background-image: radial-gradient(#c9ced6 2.5px, transparent 2.6px); background-size: 26px 26px; }
.auth-visual__dots--top { right: 0; top: 0; width: 280px; height: 220px; }
.auth-visual__dots--left { left: 0; top: 230px; width: 56px; height: 230px; }
.auth-visual img { position: absolute; left: 36px; right: 36px; top: 40px; width: calc(100% - 72px); height: 460px; object-fit: cover; object-position: center; border-radius: 22px; box-shadow: 0 24px 48px -24px rgba(47, 58, 74, .45); }

@media (max-width: 1200px) {
    .auth-header, .auth-footer, .auth-main { padding-left: 40px; padding-right: 40px; }
    .auth-main { gap: 40px; }
}
@media (max-width: 991px) {
    .auth-visual { display: none; }
    .auth-main { justify-content: center; }
}
@media (max-width: 575px) {
    .auth-header { height: auto; padding: 14px 16px; flex-wrap: wrap; gap: 12px; }
    .auth-footer { padding: 0 16px; font-size: 12px; }
    .auth-main { padding: 24px 16px; }
    .auth-title { font-size: 30px; }
    .auth-actions { flex-direction: column; }
    .auth-btn--ghost { width: 100%; }
}

/* page loader (global.css is not loaded on auth pages) */
.auth .loader { position: fixed; z-index: 9999; inset: 0; display: flex; justify-content: center; align-items: center; background: rgba(255, 255, 255, .7); }
.auth .loader svg { height: 75px; }
.auth.no-scroll { overflow-y: hidden; }
