* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #0a0a0a;
    color: #f2f2f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.kc-bg {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 0;
    overflow: hidden;
}

.kc-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 106, 26, 0.22) 1px, transparent 1px);
    background-size: 22px 22px;
}

.kc-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 340px at -5% -8%, rgba(255, 106, 26, 0.5), rgba(255, 106, 26, 0.12) 55%, transparent 75%),
        radial-gradient(circle 420px at 108% 112%, rgba(255, 106, 26, 0.38), transparent 70%);
}

.kc-page {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.kc-header {
    margin-bottom: 56px;
}

.kc-logo {
    height: 80px;
    display: block;
}

.kc-page-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kc-page-centered .kc-header {
    margin-bottom: 0;
}

.kc-page-centered .kc-title {
    margin: 32px 0 40px;
}

.kc-page-centered .kc-grid {
    text-align: left;
}

.kc-title {
    font-size: 34px;
    font-weight: 500;
    margin: 0 0 10px;
}

.kc-subtitle {
    font-size: 17px;
    color: #9a9a95;
    margin: 0 0 40px;
    line-height: 1.5;
}

.kc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 780px;
    width: 100%;
}

.kc-card {
    background: rgba(19, 18, 16, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.kc-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}

.kc-card-link:hover {
    border-color: #ff6a1a;
    transform: translateY(-2px);
}

.kc-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.kc-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #241b12;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8a3d;
    flex-shrink: 0;
}

.kc-card-icon svg {
    width: 26px;
    height: 26px;
}

.kc-card-title {
    font-size: 19px;
    font-weight: 500;
    margin: 0;
    color: #f2f2f0;
}

.kc-card-desc {
    font-size: 15px;
    color: #8a8a86;
    margin: 0 0 22px;
    line-height: 1.5;
}

.kc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #ff6a1a;
}

.kc-arrow {
    transition: transform .15s ease;
}

.kc-card-link:hover .kc-arrow {
    transform: translateX(3px);
}

/* Экран создания администратора (bootstrap) */

.kc-card-wide {
    max-width: 480px;
}

.kc-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.kc-alert-success {
    background: #10241a;
    border: 1px solid #1d5c3c;
    color: #6fdba0;
}

.kc-alert-danger {
    background: #2a1414;
    border: 1px solid #7a2b2b;
    color: #f19a9a;
}

.kc-form-group {
    margin-bottom: 16px;
}

.kc-label {
    display: block;
    font-size: 13px;
    color: #9a9a95;
    margin-bottom: 6px;
}

.kc-input {
    width: 100%;
    background: #151412;
    border: 1px solid #262420;
    border-radius: 8px;
    padding: 10px 12px;
    color: #f2f2f0;
    font-size: 14px;
}

.kc-input:focus {
    outline: none;
    border-color: #ff6a1a;
}

.kc-button {
    display: inline-block;
    text-align: center;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.kc-button-primary {
    background: #ff6a1a;
    color: #0a0a0a;
}

.kc-button-primary:hover {
    background: #ff7d3a;
}

.kc-button-block {
    display: block;
    width: 100%;
}

@media (max-width: 640px) {
    .kc-page {
        padding: 32px 20px 56px;
    }

    .kc-logo {
        height: 62px;
    }

    .kc-title {
        font-size: 24px;
    }

    .kc-page-centered .kc-title {
        margin: 24px 0 28px;
    }

    .kc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    .kc-card {
        padding: 22px;
    }

    .kc-card-icon {
        width: 44px;
        height: 44px;
    }

    .kc-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .kc-card-title {
        font-size: 17px;
    }

    .kc-card-desc {
        font-size: 14px;
    }
}
