html[data-view="auth"] .nav, html[data-view="auth"] #app > .footer { display: none; }
html[data-view="auth"] body { background: #f3f5f9; }
html { scrollbar-gutter: stable; }
.auth-layout {
  --auth-ink: #172642;
  --auth-muted: #6d788d;
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100dvh;
  padding: 0 42px; color: var(--auth-ink); font-family: 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(ellipse at 8% 48%, #7040bc0d, transparent 52%), radial-gradient(ellipse at 100% 20%, #e5ebf699, transparent 50%), #f3f5f9;
}
.auth-page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; max-width: 1160px; min-height: 112px; margin: 0 auto; }
.auth-header-brand { display: flex; align-items: center; gap: 25px; }
.auth-header-brand .brand { gap: 11px; }
.auth-header-brand .brand img { width: 35px; height: 45px; }
.auth-header-brand .brand strong { font-size: 18px; letter-spacing: 1.8px; }
.auth-header-brand .brand small { font-size: 8px; letter-spacing: 4.8px; }
.auth-header-label { border-left: 1px solid #d7dce6; padding-left: 24px; color: #69778d; font-size: 13px; }
.auth-header-links { display: flex; align-items: center; gap: 25px; font-size: 13px; }
.auth-support { color: #69778d; }
.auth-support:hover { color: var(--accent); }
.auth-return { display: inline-flex; gap: 10px; align-items: center; padding: 9px 14px; background: #ffffff90; border: 1px solid #dde3ed; border-radius: 8px; color: #3f4e67; transition: background .2s, box-shadow .2s; }
.auth-return:hover { background: white; box-shadow: 0 4px 12px #192b4910; }
.auth-portal {
  display: grid; grid-template-columns: minmax(280px, .84fr) minmax(0, 1.36fr); width: 100%; max-width: 1080px; margin: auto;
  padding: 12px; background: #fff; border: 1px solid #e5e9f0; border-radius: 26px;
  box-shadow: 0 4px 8px #17264203, 0 22px 50px -22px #17264225, 0 65px 100px -65px #16264445;
}
.auth-sidebar {
  display: flex; flex-direction: column; position: relative; isolation: isolate; min-width: 0; overflow: hidden;
  border: 1px solid #ffffff12; border-radius: 17px; padding: 30px 25px;
  background: linear-gradient(150deg, #172647, #102038);
  color: white;
}
.auth-sidebar::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .14; background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.auth-ambient, .auth-ambient > span { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.auth-ambient { z-index: -1; overflow: hidden; }
.auth-ambient > span { background: radial-gradient(ellipse at 95% 0%, color-mix(in srgb, var(--product-color) 48%, transparent), transparent 80%); opacity: 0; transition: opacity .4s ease; }
.auth-ambient > span.selected { opacity: 1; }
.auth-sidebar-content { position: relative; z-index: 1; }
.auth-sidebar-label { display: block; color: #a4b1c9; font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.auth-spaces { display: grid; gap: 9px; margin-top: 21px; }
.auth-spaces > button { display: flex; align-items: center; width: 100%; min-height: 81px; gap: 14px; padding: 14px; border: 1px solid #ffffff0f; border-radius: 12px; background: #ffffff04; color: #f2f5fb; text-align: left; transition: background-color .28s ease, color .28s ease, box-shadow .28s ease, border-color .28s ease; }
.auth-spaces > button:hover { background: #ffffff0d; border-color: #ffffff33; }
.auth-spaces > button.selected { background: white; border-color: white; color: #152441; box-shadow: 0 7px 20px #050b262a; }
.auth-app-icon { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; border: 1px solid #ffffff12; border-radius: 11px; background: #ffffff08; color: #b9c7e0; }
.selected .auth-app-icon { border-color: color-mix(in srgb, var(--product-color) 10%, white); color: var(--product-color); background: color-mix(in srgb, var(--product-color) 8%, white); }
.auth-app-name { flex: 1; min-width: 0; }
.auth-app-name strong { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.2px; line-height: 1.3; }
.auth-app-name > span { display: block; margin-top: 5px; font-size: 11px; line-height: 1.35; color: #a4b3cd; }
.selected .auth-app-name > span { color: #69778d; }
.auth-app-arrow { display: flex; color: #a3b1c9; opacity: 0; transform: translateX(-5px); transition: opacity .2s, transform .2s; }
.auth-app-arrow svg { width: 17px; }
.selected .auth-app-arrow { color: var(--product-color); opacity: 1; transform: none; }
.auth-spaces > button:hover .auth-app-arrow { opacity: 1; transform: none; }
.auth-kopra { border-top: 1px solid #ffffff14; padding-top: 25px; margin-top: 25px; }
.auth-kopra strong { display: block; margin-top: 6px; font-size: 17px; font-weight: 500; }
.auth-kopra-links { display: flex; gap: 8px; margin-top: 13px; }
.auth-kopra-links a { display: flex; align-items: center; justify-content: space-between; flex: 1; padding: 8px 10px; border: 1px solid #ffffff1c; border-radius: 7px; background: #ffffff05; color: #d6dfed; font-size: 11px; font-weight: 600; transition: background .2s, border-color .2s; }
.auth-kopra-links a > span { color: #7e93b6; }
.auth-kopra-links a:hover { background: #ffffff12; border-color: #ffffff44; }
.auth-signature { position: relative; margin-top: auto; padding: 55px 0 4px; }
.auth-signature > img { position: absolute; z-index: -1; width: 280px; max-width: none; right: -95px; bottom: -115px; opacity: .06; transform: rotate(-16deg); }
.auth-signature > span { font-size: 9px; color: #879bbd; letter-spacing: .19em; }
.auth-signature > p { margin-top: 9px; font-size: 25px; line-height: 1.3; font-weight: 500; color: white; letter-spacing: -.6px; }
.auth-signature em { color: #cbd5e8; font: italic 29px/1.3 Georgia, serif; }
.auth-main { min-width: 0; display: flex; flex-direction: column; padding: 26px clamp(30px, 4vw, 58px) 24px; }
.auth-mode-nav { display: flex; gap: 29px; border-bottom: 1px solid #edf0f5; }
.auth-mode-nav > a { position: relative; min-height: 43px; padding: 6px 0 14px; color: #69778d; font-size: 13px; font-weight: 600; }
.auth-mode-nav > a::after { position: absolute; content: ''; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.auth-mode-nav > a.selected { color: #26364f; }
.auth-mode-nav > a.selected::after, .auth-mode-nav > a:hover::after { transform: scaleX(1); }
.auth-form-region { width: 100%; max-width: 440px; margin: auto 0; padding: 32px 0 28px; flex-shrink: 0; overflow: clip; overflow-clip-margin: 6px; }
.auth-app-icon, .auth-app-name > span, .auth-heading-icon { transition: color .28s ease, background-color .28s ease, border-color .28s ease; }
.auth-selected-label, .auth-heading h1 > span, .auth-field-heading a, .auth-switch { transition: color .28s ease; }
.auth-selected-label { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .14em; }
.auth-heading-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 7%, white); }
.auth-heading-icon svg { width: 17px; height: 17px; }
.auth-heading { margin-bottom: 27px; }
.auth-heading h1 { margin-top: 15px; color: #172642; font-family: 'Segoe UI', Arial, sans-serif; font-size: clamp(27px, 2.7vw, 36px); line-height: 1.17; letter-spacing: -1.3px; font-weight: 650; }
.auth-heading h1 > span { color: var(--accent); }
.auth-heading p { margin-top: 11px; max-width: 380px; font-size: 14px; line-height: 1.65; color: #69778d; }
.auth-form { gap: 21px; }
.auth-field { min-width: 0; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; color: #42516a; }
.auth-field-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; }
.auth-field-heading a { font-size: 12px; font-weight: 500; color: var(--accent); }
.auth-field-heading a:hover { text-decoration: underline; }
.auth-input { display: block; position: relative; margin-top: 9px; }
.auth-field-icon { position: absolute; display: flex; top: 50%; left: 16px; transform: translateY(-50%); color: #a5aebe; pointer-events: none; transition: color .2s; }
.auth-field-icon svg { width: 19px; height: 19px; }
.auth-form .auth-input input { display: block; width: 100%; height: 55px; margin: 0; padding: 14px 16px 14px 47px; color: #273951; background: #fff; border: 1px solid #dce2ec; border-radius: 9px; box-shadow: 0 2px 3px #16264a02; font-size: 15px; font-weight: 400; }
.auth-form .auth-input input::placeholder { color: #7b879b; }
.auth-form .auth-input input:hover { border-color: #b7c2d4; }
.auth-form .auth-input input:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
.auth-input:focus-within .auth-field-icon { color: var(--accent); }
.auth-form .auth-input input:user-invalid { border-color: #bc4560; }
.auth-form .pass-wrap input { padding-right: 54px !important; }
.auth-form .pass-wrap button { display: grid; place-items: center; top: 8px; right: 8px; width: 38px; height: 38px; padding: 0; border-radius: 7px; color: #929eb1; }
.auth-form .pass-wrap button:hover { background: #f0f3f8; color: var(--accent); }
.auth-form-options { margin-top: -5px; }
.auth-form .check { display: flex; align-items: center; gap: 9px; color: #69778d; font-size: 12px; font-weight: 400; }
.auth-form .check input { width: 15px; height: 15px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.auth-submit { display: flex; justify-content: space-between; min-height: 54px; padding: 14px 20px; border: 1px solid #ffffff15; border-radius: 9px; background: var(--accent); box-shadow: 0 3px 6px color-mix(in srgb, var(--accent) 16%, transparent), 0 9px 18px -8px color-mix(in srgb, var(--accent) 35%, transparent); }
:root[data-motion="on"] .auth-submit:hover { transform: translateY(-2px); }
:root[data-motion="on"] .auth-submit:active { transform: translateY(0); }
.auth-submit > span { flex: 1; text-align: center; padding-left: 18px; font-size: 14px; font-weight: 600; letter-spacing: .1px; }
.auth-submit > svg { width: 18px; height: 18px; transition: transform .25s; }
.auth-submit:hover > svg { transform: translateX(4px); }
.auth-form .form-feedback:empty { display: none; }
.auth-form-region .preview-note { border: 0; padding: 0; margin: 14px 0 0 !important; background: none; text-align: center; color: #768297; font-size: 11px !important; line-height: 1.5; }
.auth-help { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 21px; border-top: 1px solid #edf0f5; color: #748198; font-size: 12px; }
.auth-help > svg { height: 15px; width: 15px; }
.auth-help a { color: #65748e; }
.auth-help a:hover { color: var(--accent); text-decoration: underline; }
.auth-terms { align-items: flex-start !important; line-height: 1.6; }
.auth-terms input { margin-top: 3px !important; }
.auth-terms a { color: var(--accent); }
.auth-switch { margin-top: 23px; text-align: center; font-size: 13px; color: var(--accent); }
.auth-switch a:hover { text-decoration: underline; }
.auth-legal { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 15px; width: 100%; max-width: 1080px; min-height: 95px; margin: 0 auto; color: #728096; font-size: 11px; }
.auth-legal > div { display: flex; gap: 21px; }
.auth-legal a:hover { color: #53617a; }
.auth-layout[data-auth-mode="recuperation"] .auth-heading h1 { font-size: 34px; }
@media (max-width: 1120px) and (min-width: 781px) {
  .auth-layout { padding: 0 28px; }
  .auth-portal { grid-template-columns: minmax(270px, .88fr) minmax(0, 1.12fr); }
  .auth-main { padding-left: 30px; padding-right: 30px; }
  .auth-sidebar { padding-left: 19px; padding-right: 19px; }
  .auth-spaces > button { padding: 12px; gap: 10px; }
  .auth-app-name > span { font-size: 10px; }
  .auth-app-arrow { display: none; }
  .auth-heading h1 { font-size: 30px; }
}
@media (max-height: 800px) and (min-width: 781px) {
  .auth-page-header { min-height: 85px; }
  .auth-legal { min-height: 65px; }
  .auth-sidebar { padding-top: 24px; padding-bottom: 24px; }
  .auth-signature { padding-top: 30px; }
  .auth-form-region { padding-top: 23px; padding-bottom: 23px; }
  .auth-heading { margin-bottom: 23px; }
  .auth-heading h1 { font-size: 30px; }
  .auth-spaces > button { min-height: 73px; }
}
@media (max-width: 780px) {
  .auth-layout { padding: 0 20px; }
  .auth-page-header { min-height: 82px; gap: 14px; }
  .auth-header-label, .auth-support { display: none; }
  .auth-header-brand .brand img { width: 28px; height: 37px; }
  .auth-header-brand .brand strong { font-size: 14px; letter-spacing: 1.4px; }
  .auth-header-brand .brand small { font-size: 7px; letter-spacing: 4px; }
  .auth-return { font-size: 11px; padding: 8px 10px; }
  .auth-portal { display: block; padding: 8px; border-radius: 21px; margin: 0 auto; max-width: 540px; }
  .auth-sidebar { display: block; padding: 17px 14px; border-radius: 14px; overflow: visible; }
  .auth-sidebar-label { font-size: 9px; }
  .auth-spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
  .auth-spaces > button { min-height: 50px; justify-content: center; padding: 10px 5px; gap: 6px; border-radius: 9px; text-align: center; }
  .auth-app-icon { height: 21px; width: 21px; border-radius: 0; border: 0; background: transparent; }
  .auth-app-icon svg { height: 20px; width: 20px; }
  .auth-app-name { flex: initial; }
  .auth-app-name strong { font-size: 12px; }
  .auth-app-name > span, .auth-app-arrow, .auth-signature { display: none; }
  .auth-kopra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; margin-top: 13px; }
  .auth-kopra .auth-sidebar-label { display: none; }
  .auth-kopra strong { margin: 0; font-size: 12px; color: #b9c7de; }
  .auth-kopra-links { margin: 0; gap: 6px; }
  .auth-kopra-links a { font-size: 10px; min-height: 36px; padding: 7px 8px; gap: 10px; }
  .auth-main { padding: 20px 20px 24px; }
  .auth-mode-nav { gap: 27px; }
  .auth-mode-nav a { min-height: 38px; font-size: 12px; padding-bottom: 10px; }
  .auth-form-region { max-width: none; padding: 25px 0; }
  .auth-heading h1 { font-size: 29px; letter-spacing: -.9px; }
  .auth-heading p { font-size: 13px; }
  .auth-form { gap: 19px; }
  .auth-form .auth-input input { font-size: 16px; }
  .auth-help { flex-wrap: wrap; font-size: 11px; }
  .auth-legal { padding: 25px 5px; min-height: 90px; justify-content: center; gap: 12px; font-size: 10px; }
  .auth-legal > span:last-child { display: none; }
  .auth-legal > div { gap: 17px; }
  .auth-layout[data-auth-mode="recuperation"] .auth-heading h1 { font-size: 29px; }
}
@media (max-width: 370px) {
  .auth-layout { padding-left: 12px; padding-right: 12px; }
  .auth-main { padding-left: 15px; padding-right: 15px; }
  .auth-return { padding: 7px; }
}
