/* =========================================
   Přihlášení — Fajn Správa
   Varianta A: Centrovaný login + logo wall
   BEM CSS – pouze obsah stránky
   ========================================= */

/* === Login blok === */
.login {
    padding: 0 0 40px;
    margin-top: -4rem;
}

/* === Loga portálů === */
.login__portals {
    text-align: center;
    margin-bottom: 32px;
}

.login__portals-img {
    max-width: 360px;
    height: auto;
}

/* === Formulářová karta === */
.login__card {
    max-width: 460px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.03),
        0 16px 44px rgba(0, 0, 0, 0.06);
}

.login__card-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    text-align: center;
}

.login__card-subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 32px;
    text-align: center;
}

/* === Formulář === */
.login__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login__label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.login__input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}

.login__input::placeholder {
    color: #cbd5e1;
}

.login__input:focus {
    border-color: #0091ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.1);
}

/* Volby */
.login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    position: relative;
}

.login__checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.login__checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    background: #fff;
}

.login__checkbox input:checked + .login__checkbox-mark {
    background: #0091ff;
    border-color: #0091ff;
}

.login__checkbox input:checked + .login__checkbox-mark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.login__forgot {
    font-size: 14px;
    color: #0091ff;
    font-weight: 500;
    text-decoration: none;
}

.login__forgot:hover {
    color: #0078d4;
    text-decoration: underline;
}

/* Tlačítko */
.login__submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff7e28 0%, #ff9a4e 100%);
    border: none;
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.login__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 126, 40, 0.35);
}

.login__submit:active {
    transform: translateY(0);
}

/* Registrace */
.login__register {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #94a3b8;
}

.login__register-link {
    color: #0091ff;
    font-weight: 600;
    text-decoration: none;
}

.login__register-link:hover {
    color: #0078d4;
    text-decoration: underline;
}

/* === Statistiky === */
.login__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.login__stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login__stats-number {
    font-size: 34px;
    font-weight: 700;
    color: #0091ff;
    line-height: 1;
    margin-bottom: 4px;
}

.login__stats-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
}

.login__stats-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

/* === Honeycomb loga === */
.login__logos {
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
}

.login__logos-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    text-align: center;
    margin: 0 0 20px;
    font-weight: 500;
}

.login__honeycomb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.login__honeycomb-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.login__honeycomb-row--offset {
    margin-top: -22px;
}

.login__hex {
    width: 100px;
    height: 100px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(30%);
    opacity: 0.85;
}

.login__hex img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.login__hex:hover {
    transform: scale(1.15);
    filter: grayscale(0%);
    opacity: 1;
    z-index: 1;
    position: relative;
}

/* =========================================
   Responzivní design
   ========================================= */

@media (max-width: 768px) {
    .login__card {
        padding: 32px 24px;
        margin-bottom: 32px;
    }

    .login__stats {
        gap: 20px;
        margin-bottom: 32px;
    }

    .login__stats-number {
        font-size: 28px;
    }

    .login__hex {
        width: 76px;
        height: 76px;
    }

    .login__honeycomb-row--offset {
        margin-top: -16px;
    }

    .login__options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .login {
        margin-top: -2rem;
    }

    .login__card {
        padding: 28px 20px;
    }

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

    .login__stats-number {
        font-size: 22px;
    }

    .login__hex {
        width: 58px;
        height: 58px;
    }

    .login__honeycomb-row--offset {
        margin-top: -12px;
    }

    .login__honeycomb {
        gap: 4px;
    }

    .login__honeycomb-row {
        gap: 4px;
    }
}
