/* =========================================================
   LAHOME AUTHENTICATION 2026 v3
   Izolovano pouze pod #lh-auth-page-2026.
   Vzhledove sladeno se spodnimi bloky LaHome.
   Zadny globalni selektor mimo wrapper.
   ========================================================= */

#lh-auth-page-2026,
#lh-auth-page-2026 *,
#lh-auth-page-2026 *:before,
#lh-auth-page-2026 *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#lh-auth-page-2026 {
    width: 100%;
    margin: 8px 0 34px;
    padding: 0;
    font-family: "Jost", Arial, sans-serif;
    color: #3b332e;
}

/* Hlavicka - kompaktnejsi, stejne jako dalsi obsahove bloky */
#lh-auth-page-2026 .lh-auth-head {
    max-width: none;
    margin: 0 0 22px;
    padding: 0 0 14px;
    text-align: left;
    border-bottom: 1px solid #eee7e1;
}

#lh-auth-page-2026 .lh-auth-kicker {
    display: block;
    margin: 0 0 5px;
    color: #977762;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .14em;
}

#lh-auth-page-2026 .lh-auth-head h1 {
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3d342f;
    font-family: "Jost", Arial, sans-serif;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 500;
    text-transform: none;
}

#lh-auth-page-2026 .lh-auth-head p {
    max-width: none;
    margin: 0;
    color: #81776f;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}

/* Dva hlavni bloky */
#lh-auth-page-2026 .lh-auth-grid {
    display: table;
    width: calc(100% + 14px);
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 14px 0;
    margin-left: -7px;
    margin-right: -7px;
}

#lh-auth-page-2026 .lh-auth-card {
    display: table-cell;
    width: 50%;
    height: 100%;
    padding: 28px 30px;
    vertical-align: top;
    border: 1px solid #e7dfd7;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#lh-auth-page-2026 .lh-auth-register-card {
    background: #f7f3ee;
}

#lh-auth-page-2026 .lh-auth-login-card {
    background: #fff;
}

#lh-auth-page-2026 .lh-auth-form {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

/* Ikony z predchozi verze skryty - spodní bloky webu je nepouzivaji */
#lh-auth-page-2026 .lh-auth-card-icon {
    display: none;
}

#lh-auth-page-2026 .lh-auth-overline {
    display: block;
    margin: 0 0 5px;
    color: #977762;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .14em;
}

#lh-auth-page-2026 .lh-auth-card h3 {
    margin: 0 0 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3d342f;
    font-family: "Jost", Arial, sans-serif;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 500;
    text-transform: none;
}

#lh-auth-page-2026 .lh-auth-intro {
    min-height: 36px;
    margin: 0 0 20px;
    color: #837970;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

/* Pole */
#lh-auth-page-2026 .lh-auth-field {
    margin: 0 0 15px;
}

#lh-auth-page-2026 .lh-auth-field label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    color: #453b35;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    text-align: left;
}

#lh-auth-page-2026 .lh-auth-field .form-control {
    display: block;
    float: none;
    width: 100% !important;
    max-width: none !important;
    height: 46px;
    margin: 0 !important;
    padding: 0 17px;
    border: 1px solid #d8cec5;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    outline: 0;
    background: #faf9f7;
    color: #332c27;
    font-family: "Jost", Arial, sans-serif;
    font-size: 15px;
    line-height: 44px;
    text-align: left;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

#lh-auth-page-2026 .lh-auth-field .form-control:hover {
    border-color: #c7b7aa;
    background: #fff;
}

#lh-auth-page-2026 .lh-auth-field .form-control:focus {
    border-color: #9b7760;
    background: #fff;
    -webkit-box-shadow: 0 0 0 3px rgba(151,119,98,.08);
    box-shadow: 0 0 0 3px rgba(151,119,98,.08);
}

#lh-auth-page-2026 .lh-auth-label-row {
    display: table;
    width: 100%;
}

#lh-auth-page-2026 .lh-auth-label-row label,
#lh-auth-page-2026 .lh-auth-label-row .lh-auth-forgot {
    display: table-cell;
    vertical-align: bottom;
}

#lh-auth-page-2026 .lh-auth-label-row .lh-auth-forgot {
    padding: 0 0 6px 10px;
    color: #76594a;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
    text-align: right;
    text-decoration: underline;
    text-underline-offset: 3px;
    border: 0;
}

#lh-auth-page-2026 .lh-auth-label-row .lh-auth-forgot:hover {
    color: #593c2b;
}

/* Benefity registrace */
#lh-auth-page-2026 .lh-auth-benefits {
    margin: 4px 0 20px;
    padding: 0;
    list-style: none;
}

#lh-auth-page-2026 .lh-auth-benefits li {
    display: table;
    width: 100%;
    margin: 0 0 12px;
}

#lh-auth-page-2026 .lh-auth-benefits li > span {
    display: table-cell;
    width: 23px;
    vertical-align: top;
    background: transparent;
    color: #75806c;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    text-align: left;
}

#lh-auth-page-2026 .lh-auth-benefits li > div {
    display: table-cell;
    padding-left: 9px;
    vertical-align: top;
}

#lh-auth-page-2026 .lh-auth-benefits strong {
    display: block;
    margin: 0 0 1px;
    color: #453b35;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
}

#lh-auth-page-2026 .lh-auth-benefits small {
    display: block;
    color: #8b8078;
    font-size: 11px;
    line-height: 1.4;
}

/* Tlacitka jsou zarovnana prirozene na spodni hranu obou stejne vysokych formularu */
#lh-auth-page-2026 .lh-auth-login-spacer {
    display: none;
}

#lh-auth-page-2026 .lh-auth-submit {
    margin-top: auto;
    padding: 0;
}

#lh-auth-page-2026 .lh-auth-button {
    display: block;
    position: relative;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0 44px 0 16px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    font-family: "Jost", Arial, sans-serif;
    font-size: 13px;
    line-height: 44px;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    -webkit-transition: background .16s ease, color .16s ease, border-color .16s ease;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

#lh-auth-page-2026 .lh-auth-button i {
    position: absolute;
    top: 0;
    right: 16px;
    height: 44px;
    line-height: 44px;
    font-size: 10px;
}

#lh-auth-page-2026 .lh-auth-button-primary {
    border: 1px solid #735746;
    background: #735746;
    color: #fff;
}

#lh-auth-page-2026 .lh-auth-button-primary:hover,
#lh-auth-page-2026 .lh-auth-button-primary:focus {
    border-color: #5e4437;
    background: #5e4437;
    color: #fff;
}

#lh-auth-page-2026 .lh-auth-button-outline {
    border: 1px solid #cdbeb2;
    background: #fff;
    color: #5f493d;
}

#lh-auth-page-2026 .lh-auth-button-outline:hover,
#lh-auth-page-2026 .lh-auth-button-outline:focus {
    border-color: #a98c79;
    background: #fff;
    color: #4e3b31;
}

#lh-auth-page-2026 .lh-auth-create-error {
    margin: 0 0 15px;
    border-radius: 0;
}

/* Pomocny blok stejne plochy jako registrace */
#lh-auth-page-2026 .lh-auth-help {
    display: table;
    width: 100%;
    margin: 14px 0 0;
    padding: 15px 18px;
    border: 1px solid #e7dfd7;
    border-radius: 0;
    background: #f7f3ee;
}

#lh-auth-page-2026 .lh-auth-help > div,
#lh-auth-page-2026 .lh-auth-help > a {
    display: table-cell;
    vertical-align: middle;
}

#lh-auth-page-2026 .lh-auth-help strong,
#lh-auth-page-2026 .lh-auth-help span {
    display: block;
}

#lh-auth-page-2026 .lh-auth-help strong {
    margin-bottom: 2px;
    color: #453b35;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}

#lh-auth-page-2026 .lh-auth-help span {
    color: #857b73;
    font-size: 11px;
    line-height: 1.4;
}

#lh-auth-page-2026 .lh-auth-help > a {
    padding-left: 20px;
    color: #6d5041;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    text-decoration: none;
}

#lh-auth-page-2026 .lh-auth-help > a i {
    margin-left: 6px;
    font-size: 9px;
}

#lh-auth-page-2026 .lh-auth-help > a:hover {
    color: #4f392e;
    text-decoration: none;
}

/* Prebije stare global.css pravidlo pouze uvnitr noveho wrapperu */
@media (max-width: 768px) {
    #authentication #lh-auth-page-2026 .lh-auth-field .form-control {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 767px) {
    #lh-auth-page-2026 {
        margin-top: 2px;
        margin-bottom: 24px;
    }

    #lh-auth-page-2026 .lh-auth-head {
        margin-bottom: 18px;
        padding: 0 0 12px;
    }

    #lh-auth-page-2026 .lh-auth-head h1 {
        font-size: 24px;
    }

    #lh-auth-page-2026 .lh-auth-head p {
        font-size: 12px;
        line-height: 1.45;
    }

    #lh-auth-page-2026 .lh-auth-grid {
        display: block;
        width: 100%;
        margin: 0;
        border-spacing: 0;
    }

    #lh-auth-page-2026 .lh-auth-card {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 0 10px;
        padding: 23px 18px;
        border-radius: 0;
    }

    #lh-auth-page-2026 .lh-auth-card h3 {
        font-size: 22px;
    }

    #lh-auth-page-2026 .lh-auth-intro {
        min-height: 0;
        margin-bottom: 18px;
    }

    #lh-auth-page-2026 .lh-auth-form {
        height: auto;
    }

    #lh-auth-page-2026 .lh-auth-login-spacer {
        display: none;
    }

    #lh-auth-page-2026 .lh-auth-submit {
        margin-top: 0;
    }

    #lh-auth-page-2026 .lh-auth-benefits {
        margin-bottom: 18px;
    }

    #lh-auth-page-2026 .lh-auth-field .form-control {
        height: 46px;
        padding-left: 16px;
        padding-right: 16px;
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        border-radius: 6px;
        font-size: 16px;
        line-height: 44px;
    }

    #lh-auth-page-2026 .lh-auth-button {
        min-height: 46px;
        line-height: 44px;
    }

    #lh-auth-page-2026 .lh-auth-help,
    #lh-auth-page-2026 .lh-auth-help > div,
    #lh-auth-page-2026 .lh-auth-help > a {
        display: block;
        width: 100%;
    }

    #lh-auth-page-2026 .lh-auth-help {
        padding: 15px 16px;
    }

    #lh-auth-page-2026 .lh-auth-help > a {
        margin-top: 8px;
        padding-left: 0;
        text-align: left;
        white-space: normal;
    }
}

/* === LaHome auth v6: presne zarovnani CTA + vyraznejsi hover === */
#lh-auth-page-2026 .lh-auth-grid {
    align-items: stretch;
}

#lh-auth-page-2026 .lh-auth-card {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    height: 100%;
}

#lh-auth-page-2026 .lh-auth-card .lh-auth-form {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    min-height: 0;
}

#lh-auth-page-2026 .lh-auth-submit {
    margin-top: auto !important;
}

/* Vyraznejsi, ale stabilni hover hlavních tlacitek */
#lh-auth-page-2026 .lh-auth-button {
    position: relative;
    overflow: hidden;
    -webkit-transition: background-color .20s ease, color .20s ease, border-color .20s ease, box-shadow .20s ease, -webkit-transform .20s ease;
    transition: background-color .20s ease, color .20s ease, border-color .20s ease, box-shadow .20s ease, transform .20s ease;
}

@media (hover: hover) and (pointer: fine) {
    #lh-auth-page-2026 .lh-auth-button:hover,
    #lh-auth-page-2026 .lh-auth-button:focus {
        -webkit-transform: translateY(-2px);
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(91, 65, 50, .18);
    }

    #lh-auth-page-2026 .lh-auth-button-primary:hover,
    #lh-auth-page-2026 .lh-auth-button-primary:focus {
        background: #4f392e;
        border-color: #4f392e;
        color: #fff;
    }

    #lh-auth-page-2026 .lh-auth-button-secondary:hover,
    #lh-auth-page-2026 .lh-auth-button-secondary:focus {
        background: #735746;
        border-color: #735746;
        color: #fff;
    }
}

#lh-auth-page-2026 .lh-auth-button:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    box-shadow: 0 2px 7px rgba(91, 65, 50, .14);
}

@media (max-width: 767px) {
    #lh-auth-page-2026 .lh-auth-card,
    #lh-auth-page-2026 .lh-auth-card .lh-auth-form {
        height: auto;
    }

    #lh-auth-page-2026 .lh-auth-submit {
        margin-top: 0 !important;
    }
}

/* === LaHome auth v7: desktop vzdy 2 sloupce === */
@media (min-width: 768px) {
    #lh-auth-page-2026 .lh-auth-grid {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
        -webkit-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 14px;
        width: 100%;
    }

    #lh-auth-page-2026 .lh-auth-grid > .lh-auth-card {
        -webkit-flex: 1 1 0 !important;
        flex: 1 1 0 !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
        float: none !important;
        clear: none !important;
        margin: 0 !important;
    }
}

@media (max-width: 767px) {
    #lh-auth-page-2026 .lh-auth-grid {
        display: block !important;
        width: 100%;
    }

    #lh-auth-page-2026 .lh-auth-grid > .lh-auth-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 10px 0 !important;
        float: none !important;
        clear: both !important;
    }
}

/* === LaHome auth v8: stejne vysoke bloky + CTA v jedne rovine === */
@media (min-width: 768px) {
    #lh-auth-page-2026 .lh-auth-grid {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: stretch !important;
        align-items: stretch !important;
    }

    #lh-auth-page-2026 .lh-auth-grid > .lh-auth-card {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 100%;
    }

    #lh-auth-page-2026 .lh-auth-card .lh-auth-form {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-flex: 1 1 auto !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    #lh-auth-page-2026 .lh-auth-card .lh-auth-submit {
        margin-top: auto !important;
        padding-top: 18px !important;
    }
}

/* Na mobilu prirozena vyska a bez nuceneho zarovnani CTA */
@media (max-width: 767px) {
    #lh-auth-page-2026 .lh-auth-grid > .lh-auth-card,
    #lh-auth-page-2026 .lh-auth-card .lh-auth-form {
        height: auto !important;
        min-height: 0 !important;
    }

    #lh-auth-page-2026 .lh-auth-card .lh-auth-submit {
        margin-top: 0 !important;
        padding-top: 14px !important;
    }
}
