@font-face { font-family: CloudAuth; src: url('../fonts/SFPRODISPLAYREGULAR.OTF') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: CloudAuth; src: url('../fonts/SFPRODISPLAYMEDIUM.OTF') format('opentype'); font-weight: 600; font-display: swap; }
.auth-page { --auth-ink: #25324b; --auth-muted: #65738b; --auth-line: #dfe5ef; --auth-accent: #29339b; margin: 0; color: var(--auth-ink); background: #f5f7fb; font: 15px/1.5 CloudAuth, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.auth-page [hidden] { display: none !important; }
.auth-page :where(a, button, input, select, textarea):focus-visible { outline: 3px solid #8591e9; outline-offset: 3px; }
.auth-page a { color: var(--auth-accent); text-decoration: none; }
.auth-page a:hover { text-decoration: underline; }
.auth-page button, .auth-page input { font-family: inherit; }
.auth-icons { position: absolute; overflow: hidden; pointer-events: none; }
.auth-icon { width: 21px; height: 21px; display: block; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.auth-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 40px; background: #fff; border-bottom: 1px solid #e2e7f0; }
.auth-brand { display: flex; align-items: center; gap: 13px; color: var(--auth-ink) !important; text-decoration: none !important; }
.auth-brand img { display: block; width: 106px; height: 46px; object-fit: contain; }
.auth-brand span { font-size: 13px; line-height: 1.35; }
.auth-header-links { display: flex; align-items: center; flex-shrink: 0; }
.auth-support { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; }
.auth-support .auth-icon { width: 17px; height: 17px; }
.auth-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 34px 40px; min-width: 0; }
.auth-card { width: 100%; max-width: 448px; border: 1px solid #e2e7f0; border-radius: 16px; padding: 37px 38px 32px; background: #fff; box-shadow: 0 9px 30px #20346505; min-width: 0; }
.auth-card.auth-registration { max-width: 536px; padding: 30px 34px; }
.auth-form-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #eff1ff; border: 1px solid #e0e4ff; color: var(--auth-accent); margin-bottom: 22px; }
.auth-form-icon.auth-success { color: #348466; background: #edf8f2; border-color: #d8ede2; }
.auth-page h1 { color: var(--auth-ink); font-family: inherit; font-size: 29px; font-weight: 600; line-height: 1.2; letter-spacing: -.65px; margin: 0 0 12px; }
.auth-subtitle { color: var(--auth-muted); font-size: 14px; line-height: 1.6; margin: 0 0 28px; }
.auth-field { margin-bottom: 19px; min-width: 0; }
.auth-label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.auth-page .auth-label-row label { color: var(--auth-ink); font-size: 13px; font-weight: 600; margin: 0; }
.auth-label-row a { font-size: 12px; }
.auth-card input:not([type=hidden]), .auth-card textarea { width: 100%; min-width: 0; height: 47px; border: 1px solid #d4dcec; border-radius: 8px; padding: 11px 13px; color: var(--auth-ink); background: #fff; font-size: 14px; line-height: 1.4; transition: border-color .15s; }
.auth-card input::placeholder { color: #8b97aa; }
.auth-card input:focus, .auth-card textarea:focus { border-color: #727dca; box-shadow: none; }
.auth-card input[readonly] { background: #f5f7fb; color: var(--auth-muted); }
.auth-card input[aria-invalid=true] { border-color: #c56868; }
.auth-password { position: relative; }
.auth-password input:not([type=hidden]) { padding-right: 48px; }
.auth-password button { position: absolute; right: 4px; top: 4px; width: 39px; height: 39px; border: 0; background: transparent; color: #7a88a2; display: grid; place-items: center; border-radius: 6px; cursor: pointer; }
.auth-password .auth-icon { width: 18px; height: 18px; }
.auth-field-help { color: var(--auth-muted); font-size: 12px; line-height: 1.55; margin-top: 7px; }
.auth-field-help ul { margin: 0; padding-left: 18px; }
.auth-errors { color: #9a3636; background: #fff3f3; border: 1px solid #f0d5d5; border-radius: 8px; padding: 11px 13px; font-size: 13px; margin: 0 0 21px; }
.auth-errors .errorlist, .auth-field-errors .errorlist { list-style: none; padding: 0; margin: 0; }
.auth-field-errors { color: #9a3636; font-size: 12px; margin-top: 7px; }
.auth-page .auth-errors.csp-style-001 { display: none; }
.auth-primary { width: 100%; min-height: 47px; padding: 11px 16px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--auth-accent); border-radius: 8px; background: var(--auth-accent); color: white !important; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.auth-primary:hover { background: #222b85; }
.auth-primary .auth-icon { width: 17px; height: 17px; }
.auth-card-bottom { border-top: 1px solid #e9edf4; margin-top: 27px; padding-top: 22px; color: var(--auth-muted); text-align: center; font-size: 13px; }
.auth-card-bottom a { font-weight: 600; }
.auth-registration-links { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 11px; }
.auth-registration-links a:last-child { font-weight: 400; font-size: 12px; }
.auth-workspace { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; padding: 13px 14px; border: 1px solid var(--auth-line); background: #fafbfe; border-radius: 9px; min-width: 0; }
.auth-workspace-avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: #edf0ff; color: #5964ad; font-size: 12px; font-weight: 600; }
.auth-workspace strong { font-size: 13px; display: block; overflow-wrap: anywhere; }
.auth-workspace small { color: var(--auth-muted); font-size: 11px; display: block; }
.auth-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.auth-field-grid [data-field=company_name], .auth-field-grid [data-field=promocode], .auth-field-grid [data-field=activation_key] { grid-column: 1 / -1; }
.auth-registration .auth-field { margin-bottom: 15px; }
.auth-registration .auth-subtitle { margin-bottom: 22px; }
.auth-registration .auth-form-icon { width: 38px; height: 38px; margin-bottom: 16px; }
.auth-registration h1 { font-size: 27px; }
.auth-mode-tabs { display: flex; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 8px; background: #f2f4f9; }
.auth-mode-tabs a { flex: 1; border-radius: 6px; padding: 8px; color: var(--auth-muted); text-align: center; font-size: 12px; }
.auth-mode-tabs a[aria-current=page] { background: white; color: var(--auth-accent); box-shadow: 0 1px 4px #17203810; }
.auth-back { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; margin-top: 21px; }
.auth-back .auth-icon { width: 16px; height: 16px; }
.auth-hint { background: #f5f7fb; border-radius: 9px; padding: 14px 16px; color: var(--auth-muted); font-size: 13px; margin: 22px 0; }
.auth-text-button { border: 0; padding: 0; background: none; color: var(--auth-accent); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; cursor: pointer; }
.auth-message { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 22px; border-radius: 8px; background: #eff2fb; font-size: 13px; }
.auth-message.error { color: #9a3636; background: #fff3f3; }
.auth-message.success { color: #348466; background: #edf8f2; }
.auth-message button { border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.auth-footer { padding: 0 40px 20px; font-size: 11px; color: #8793a6; text-align: center; }
@media (max-width: 575.98px) {
  .auth-header { gap: 10px; padding: 15px 16px; }
  .auth-brand { gap: 10px; }
  .auth-brand img { width: 85px; height: 42px; }
  .auth-brand span { font-size: 12px; }
  .auth-support { font-size: 12px; }
  .auth-stage { padding: 28px 16px; }
  .auth-footer { padding: 0 16px 20px; }
  .auth-card, .auth-card.auth-registration { padding: 27px 24px; border-radius: 13px; }
  .auth-page h1, .auth-registration h1 { font-size: 26px; }
  .auth-field-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-card input:not([type=hidden]), .auth-card textarea { font-size: 16px; }
  .auth-registration .auth-field { margin-bottom: 17px; }
}
.auth-page .auth-sso-options { border-top: 1px solid #e2e7f0; margin-top: 24px; padding-top: 18px; }
.auth-page .auth-sso-options p { color: var(--auth-muted); font-size: 13px; text-align: center; margin: 0 0 16px; }
.auth-page .auth-sso-options form + form { margin-top: 16px; }
.auth-page .auth-microsoft-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 47px; padding: 11px 16px; border: 1px solid #8c8c8c; border-radius: 8px; background: #fff; color: #5e5e5e; font: 600 14px/1.5 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; transition: background-color .15s, border-color .15s; }
.auth-page .auth-microsoft-button img { display: block; width: 21px; height: 21px; flex-shrink: 0; }
.auth-page .auth-microsoft-button span { min-width: 0; overflow-wrap: anywhere; }
.auth-page .auth-microsoft-button:hover { background: #f3f3f3; border-color: #666; }
.auth-page .auth-microsoft-button:active { background: #e8e8e8; }
.auth-page .auth-sso-connection { display: block; margin-top: 8px; color: var(--auth-muted); font-size: 12px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .auth-card input, .auth-card textarea, .auth-page .auth-microsoft-button { transition: none; } }
