/* Museum KFU — фирменный стиль Казанского федерального университета */
/* Основной цвет брендбука КФУ: #00549F */

:root {
    --kfu-blue: #00549f;
    --kfu-blue-light: #2a7cc4;
    --kfu-blue-dim: rgba(0, 84, 159, 0.12);
    --kfu-navy: #003a70;
    --kfu-navy-deep: #002952;
    --kfu-bg: #f3f6fa;
    --kfu-card: #ffffff;
    --kfu-border: #d9e3ef;
    --kfu-text: #0f2744;
    --kfu-muted: #5b708b;
    --kfu-radius: 12px;
    --kfu-shadow: 0 4px 24px rgba(0, 58, 112, 0.08);
    --kfu-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    --bs-primary: var(--kfu-blue);
    --bs-primary-light: var(--kfu-blue-light);
    --bs-primary-dim: var(--kfu-blue-dim);
    --bs-teal: #0d9488;
    --bs-teal-dim: rgba(13, 148, 136, 0.12);
    --bs-gold: var(--kfu-blue);
    --bs-gold-light: var(--kfu-blue-light);
    --bs-gold-dim: var(--kfu-blue-dim);
    --bs-navy: var(--kfu-navy);
    --bs-navy-soft: #0a4a86;
    --bs-slate: #334155;
    --bs-bg: var(--kfu-bg);
    --bs-card: var(--kfu-card);
    --bs-border: var(--kfu-border);
    --bs-text: var(--kfu-text);
    --bs-muted: var(--kfu-muted);
    --bs-radius: var(--kfu-radius);
    --bs-shadow: var(--kfu-shadow);
    --bs-transition: var(--kfu-transition);
}

/* ——— Admin shell ——— */
.fi-sidebar {
    background: linear-gradient(180deg, var(--kfu-navy) 0%, var(--kfu-navy-deep) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fi-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

.fi-logo,
.fi-sidebar .fi-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
}

.fi-logo img,
.fi-sidebar-header img {
    height: 2.6rem !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

.fi-sidebar-group-label {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-weight: 700 !important;
}

.fi-sidebar-item-btn,
.fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar-item-label,
.fi-sidebar-item-btn span {
    color: #ffffff !important;
    opacity: 1 !important;
}

.fi-sidebar-item-btn {
    border-radius: 8px !important;
    transition: var(--kfu-transition) !important;
    border-left: 3px solid transparent !important;
    margin: 1px 8px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

.fi-sidebar-item-icon,
.fi-sidebar-item-btn .fi-icon,
.fi-sidebar-item-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 0.95 !important;
}

.fi-sidebar-item-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
.fi-sidebar-item.fi-active .fi-sidebar-item-btn,
.fi-sidebar-item-btn[aria-current="page"] {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
    border-left: 3px solid #9ec9ef !important;
    font-weight: 700 !important;
    box-shadow: inset 0 0 0 1px rgba(158, 201, 239, 0.28);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-icon,
.fi-sidebar-item.fi-active .fi-sidebar-item-label {
    color: #ffffff !important;
}

.fi-main,
.fi-body,
.fi-page {
    background: var(--kfu-bg) !important;
}

.fi-topbar {
    background: #fff !important;
    border-bottom: 1px solid var(--kfu-border) !important;
}

.fi-btn-primary,
button.fi-btn[type="submit"].fi-btn-color-primary,
.fi-btn-color-primary {
    background-color: var(--kfu-blue) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.fi-btn-primary:hover,
.fi-btn-color-primary:hover {
    background-color: var(--kfu-navy) !important;
}

/* ——— Login: одна колонка, форма по центру ——— */
.fi-simple-layout {
    min-height: 100vh !important;
    background:
        radial-gradient(900px 520px at 15% 0%, rgba(0, 84, 159, 0.18), transparent 55%),
        linear-gradient(180deg, #e8eef6 0%, #f4f7fb 45%, #eef3f8 100%) !important;
}

.fi-simple-main-ctn,
.fi-simple-main {
    min-height: 100vh !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fi-simple-page,
.fi-simple-page-content {
    min-height: auto !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 1.5rem !important;
}

.fi-simple-page-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(0, 84, 159, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 50px rgba(0, 58, 112, 0.1) !important;
    overflow: hidden !important;
}

.fi-simple-header {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 1.75rem 1.75rem 1.25rem !important;
    background: linear-gradient(160deg, var(--kfu-navy-deep), var(--kfu-navy) 65%, #004987) !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    width: 100% !important;
}

.fi-simple-header .fi-logo {
    display: none !important;
}

.fi-simple-header-heading {
    width: 100% !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.kfu-login-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    max-width: none;
}

.kfu-login-mark {
    width: 64px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.kfu-login-hero-copy {
    min-width: 0;
}

.kfu-login-hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.kfu-login-hero-title {
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.kfu-login-hero-text {
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    max-width: none;
}

.fi-simple-page-content > *:not(.fi-simple-header) {
    display: block !important;
    padding: 1.75rem !important;
    background: #fff !important;
    width: 100% !important;
}

.kfu-login-brand {
    display: none;
}

.fi-simple-page-content .fi-sc,
.fi-simple-page-content form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.fi-simple-page-content .fi-fo-field-wrp {
    margin-bottom: 1rem !important;
}

.fi-simple-page-content .fi-fo-field-wrp-label {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--kfu-text) !important;
}

.fi-simple-page-content .fi-input,
.fi-simple-page-content input[type="email"],
.fi-simple-page-content input[type="password"],
.fi-simple-page-content input[type="text"] {
    min-height: 2.85rem !important;
    font-size: 1rem !important;
    width: 100% !important;
}

.fi-simple-page-content .fi-input-wrp {
    width: 100% !important;
}

.fi-simple-page-content .fi-btn {
    min-height: 2.9rem !important;
    font-size: 1rem !important;
    width: 100% !important;
}

.fi-input-wrp {
    border-radius: 12px !important;
}

.fi-input-wrp:focus-within {
    box-shadow: 0 0 0 4px rgba(0, 84, 159, 0.12) !important;
}

.fi-btn-primary,
.fi-btn-color-primary {
    background-color: var(--kfu-navy) !important;
}

.fi-btn-primary:hover,
.fi-btn-color-primary:hover {
    background-color: var(--kfu-navy-deep) !important;
}

@media (max-width: 520px) {
    .fi-simple-page,
    .fi-simple-page-content {
        max-width: 100% !important;
        padding: 0.75rem !important;
        border-radius: 16px !important;
    }

    .fi-simple-header,
    .fi-simple-page-content > *:not(.fi-simple-header) {
        padding: 1.25rem !important;
    }

    .kfu-login-hero {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .kfu-login-mark {
        width: 56px;
    }
}
