.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand-mark > span:last-child { display: grid; line-height: 1.05; }
.brand-mark strong { font-size: 19px; letter-spacing: -.03em; }
.brand-mark small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.brand-symbol { display: grid; width: 42px; height: 42px; place-items: center; color: white; background: linear-gradient(145deg, #7475f3, #4a4bc8); border-radius: 13px; box-shadow: 0 8px 20px rgba(91, 92, 226, .3); font-weight: 800; }
.brand-mark.compact .brand-symbol { width: 38px; height: 38px; border-radius: 11px; }
.brand-mark.compact strong { font-size: 17px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border: 0; border-radius: 12px; font-weight: 750; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-primary { color: white; background: var(--primary); box-shadow: 0 10px 24px rgba(91, 92, 226, .24); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.icon-button { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 0; background: transparent; border-radius: 10px; }
.icon-button:hover { background: var(--surface-soft); }
.form-stack { display: grid; gap: 16px; }
.form-stack label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.form-options { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.check-label input { width: 16px; height: 16px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 60px; }
.password-field button { position: absolute; top: 7px; right: 7px; height: 34px; padding: 0 10px; border: 0; color: var(--primary); background: transparent; font-size: 12px; font-weight: 700; }
.notice { margin: 14px 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.notice-error { color: #9e263b; background: #fff0f2; border: 1px solid #ffd4db; }
.notice-success { color: #086d52; background: #ecfbf6; border: 1px solid #bdeedc; }
.notice-info { color: #4142a8; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.requirements { display: grid; gap: 7px; margin: 20px 0; }
.requirement-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-soft); border-radius: 10px; font-size: 13px; }
.requirement-row small { color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.ok { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 15%, transparent); }
.status-dot.bad { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent); }
.avatar { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; color: #fff; background: linear-gradient(145deg, #e98071, #ca5d72); border-radius: 12px; font-size: 13px; font-weight: 800; }
.avatar.small { width: 34px; height: 34px; border-radius: 10px; }

.form-grid.equal { grid-template-columns: 1fr 1fr; }
.database-fields { display: grid; gap: 12px; padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
@media (max-width: 520px) { .form-grid.equal { grid-template-columns: 1fr; } }
