/* Keep the original desktop layout; adapt the shared shell below 960px. */
#login_error {
    padding: 10px 12px;
    margin: 0 0 12px;
    border: 1px solid #c01111;
    border-radius: 6px;
    background: #fff4f4;
    color: #9b1111;
    overflow-wrap: break-word;
}

#mobile_content_ad {
    display: none;
}

@media screen and (max-width: 959px) {
    #mobile_content_ad {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        margin-top: 16px;
    }

    /* Desktop ad placements are replaced by the mobile zone below the blue section. */
    #top_banner,
    #short_right,
    #long_right {
        display: none !important;
    }

    body {
        margin-top: 12px;
    }

    #top, #container, #footer_end, #footer_webdesign {
        box-sizing: border-box;
        width: 100%;
        max-width: 940px;
    }

    #top {
        position: relative;
        height: auto;
    }

    /* Continue the blue strip embedded in the 194 x 92px logo image. */
    #top::before {
        content: "";
        position: absolute;
        left: 194px;
        right: 0;
        bottom: 0;
        box-sizing: border-box;
        height: 32px;
        border-top: 1px solid #c3daec;
        border-top-right-radius: 11px;
        background: linear-gradient(#2a69b1, #2b6fbe);
    }

    #top_left img {
        display: block;
    }

    #top_right, #billboard_right {
        display: none;
    }

    #billboard {
        height: auto;
        background-color: #1462a3;
        background-size: cover;
    }

    #billboard_left {
        box-sizing: border-box;
        float: none;
        width: 100%;
        padding: 24px;
    }

    #loginform {
        max-width: 540px;
        margin: 0 auto;
    }

    #center {
        width: auto;
        margin: 24px 16px 0;
        overflow-wrap: break-word;
    }

    #short_left, #short_right, #long_left, #long_right {
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0 0 24px;
    }

    #short_right, #long_right {
        text-align: center;
    }

    #center img:not(#chkimg) {
        max-width: 100%;
        height: auto;
    }

    #form_reg, #short_left .button {
        height: auto;
    }

    #short_left .button:after {
        content: "";
        display: block;
        clear: both;
    }

    .blue_box_top, .blue_box_bottom {
        display: none;
    }

    .blue_box, #short_left #contactunamecontainer {
        box-sizing: border-box;
        width: 100%;
    }

    .blue_box {
        padding: 16px;
        margin-bottom: 16px;
        border: 1px solid #9db6cc;
        border-radius: 8px;
    }

    #form_reg .blue_box {
        padding-bottom: 16px;
    }

    .blue_box .input_left {
        float: none;
        clear: both;
        width: auto;
        margin-top: 12px;
        min-height: 0;
    }

    .blue_box .input_right {
        width: calc(100% - 36px);
    }

    .blue_box .input_message {
        clear: both;
        width: 100%;
        margin-left: 0;
        min-height: 12px;
    }

    .blue_box .error, .blue_box .allright {
        font-size: 13px;
    }

    .blue_box_input, .blue_box_textarea {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        padding: 8px;
        border: 1px solid #9db6cc;
        border-radius: 5px;
        background: white;
        font-size: 16px;
        line-height: 24px;
    }

    .blue_box_textarea {
        resize: vertical;
    }

    .blue_box_check_span {
        height: auto;
        min-height: 44px;
        line-height: 44px;
    }

    .blue_box_check, .input_full input[type="checkbox"] {
        width: 20px;
        height: 20px;
        vertical-align: middle;
    }

    .blue_box_desc_span {
        font-size: 14px;
    }

    .pwd_container, .graybar {
        max-width: 100%;
    }

    .colorbar {
        max-width: 100%;
    }

    #div_birthday_year, #div_birthday_month, #div_birthday_day {
        box-sizing: border-box;
        width: 33.333%;
        padding: 0 4px 0 0;
    }

    /* Keep the native controls available to touch and keyboard users. */
    #input_birthday_year, #input_birthday_month, #input_birthday_day {
        display: block !important;
    }

    #div_birthday_year .newListSelected,
    #div_birthday_month .newListSelected,
    #div_birthday_day .newListSelected {
        display: none;
    }

    .faq_box_left {
        width: calc(100% - 40px);
    }

    #footer {
        box-sizing: border-box;
        width: auto;
        margin: 0 16px;
        padding: 16px 0;
        background: none;
        border-top: 1px solid #c3daec;
    }

    #footer .navigation {
        display: flex;
        flex-wrap: wrap;
        float: none;
        height: auto;
        padding: 0;
        gap: 4px 16px;
    }

    #footer .navigation li {
        float: none;
    }

    #footer .navigation li a {
        padding: 10px 0;
    }

    #footer_end {
        background: none;
    }

    #footer_webdesign {
        padding: 10px 16px;
    }
}

@media screen and (max-width: 599px) {
    #billboard_left {
        padding: 20px 16px;
    }

    #loginform {
        display: flex;
        flex-direction: column;
    }

    #loginform .bejelentkezes {
        align-self: flex-start;
    }

    .billboard_input, #passcontainer {
        box-sizing: border-box;
        width: 100%;
    }

    .billboard_input {
        height: 48px;
        padding: 8px 12px;
        margin: 10px 0 6px;
        border: 1px solid #9db6cc;
        border-radius: 6px;
        background: white;
        line-height: normal;
    }

    .gmail_white {
        padding: 0;
        font-size: 16px;
        text-align: right;
    }

    .elfelejtett_jelszo {
        box-sizing: border-box;
        width: auto;
        padding: 10px 0 16px;
    }

    .btn_belepes, .btn_regisztracio, .btn_tovabb,
    .btn_vissza, .btn_regisztracio2, .btn_kuldes {
        box-sizing: border-box;
        float: none;
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid #388216;
        border-radius: 6px;
        background: linear-gradient(#75b849, #4d9428);
        color: white;
        font: bold 17px/24px Arial, Helvetica, sans-serif;
        text-align: center;
        text-indent: 0;
        text-decoration: none;
    }

    #buttons .btn_belepes, .btn_vissza {
        border-color: #0c58a3;
        background: linear-gradient(#298ef5, #0d60b9);
        color: white;
    }

    #buttons .btn_regisztracio {
        border-color: #388216;
        background: linear-gradient(#94c94b, #588d21);
        color: white;
    }

    .btn_tovabb:link, .btn_tovabb:visited,
    .btn_vissza:link, .btn_vissza:visited,
    .btn_regisztracio2:link, .btn_regisztracio2:visited {
        color: white;
    }

    .btn_belepes:hover, .btn_regisztracio:hover, .btn_tovabb:hover,
    .btn_vissza:hover, .btn_regisztracio2:hover, .btn_kuldes:hover {
        background-position: 0 0;
        filter: brightness(0.95);
    }

    table.features_table, table.features_table tbody {
        display: block;
    }

    table.features_table tr {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr);
    }

    table.features_table td.td1, table.features_table td.td2 {
        width: auto;
        padding-right: 0;
    }
}
