/* =====================================================
   BMS public authentication pages
   ===================================================== */

.bms-auth-card {
    width: calc(100% - 32px);
    max-width: 440px;
    margin: 8vh auto 30px auto;
}

.bms-auth-card.t-Region,
.bms-auth-card .t-Region {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0,0,0,.10);
    overflow: hidden;
}

.bms-auth-card .t-Region-body {
    padding: 32px 34px 30px;
}

/* Registration needs more room */

.bms-auth-card.bms-auth-wide {
    max-width: 620px;
}


/* Header inside card */

.bms-auth-intro {
    text-align: center;
    margin: 0 0 28px 0;
}

.bms-auth-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px auto;
    display: block;
    border-radius: 7px;
}

.bms-auth-intro h1,
.bms-auth-intro h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.bms-auth-intro p {
    max-width: 350px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}


/* Form */

.bms-auth-card .t-Form-fieldContainer {
    margin-bottom: 15px;
}

.bms-auth-card input,
.bms-auth-card select {
    min-height: 42px;
}


/* Buttons */

.bms-auth-card .t-Button--hot {
    width: 100%;
    min-height: 42px;
    margin-top: 5px;
}

.bms-auth-back {
    margin-top: 20px;
    text-align: center;
}

.bms-auth-back a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
}

.bms-auth-back a:hover {
    text-decoration: underline;
}


/* Mobile */

@media (max-width: 640px) {

    .bms-auth-card,
    .bms-auth-card.bms-auth-wide {
        width: calc(100% - 24px);
        max-width: none;
        margin: 24px auto;
    }

    .bms-auth-card .t-Region-body {
        padding: 24px 20px;
    }
}


.bms-auth-button {
    background: #185a9d !important;
    border-color: #185a9d !important;
    color: #fff !important;
}

.bms-auth-button:hover {
    background: #124779 !important;
    border-color: #124779 !important;
}


/* 23.09.2026 colors */
/* ============================================================
   BMS COLOR PICKER
   ============================================================ */

.bms-color-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}


/* Полная палитра */

.bms-color-picker-native {
    width: 44px;
    height: 36px;

    padding: 2px;

    border: 1px solid #bbb;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;
}


/* Готовые цвета */

.bms-color-palette {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;
}


/* Один цвет */

.bms-color-option {
    width: 30px;
    height: 30px;

    padding: 0;

    border: 2px solid transparent;
    border-radius: 50%;

    background-color: var(--bms-color);

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}


/* Наведение */

.bms-color-option:hover {
    transform: scale(1.12);
}


/* Выбранный цвет */

.bms-color-option.is-selected {
    border-color: #222;

    box-shadow:
        0 0 0 2px #fff inset,
        0 0 0 1px #222;
}

.bms-grid-color {
    display: inline-block;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    border: 1px solid rgba(0,0,0,0.25);

    vertical-align: middle;

    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
/* ============================================================
   PALIĆ WEATHER
   Compact weather widget
   ============================================================ */


/* ============================================================
   MAIN CARD
   ============================================================ */

.palic-weather-card {
    box-sizing: border-box;

    width: 100%;
    max-width: 800px;

    margin: 0 auto;
    padding: 14px 16px;

    border-radius: 14px;

    background:
        var(--ut-region-background-color, #fff);

    box-shadow:
        0 3px 14px rgba(0, 0, 0, .07);
}


/* ============================================================
   CURRENT WEATHER
   ============================================================ */

.palic-weather-main {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 11px;
}


.palic-weather-icon {
    flex: 0 0 auto;

    font-size: 35px;
    line-height: 1;
}


.palic-weather-current {
    min-width: 0;
}


.palic-weather-temp {
    font-size: 24px;
    font-weight: 700;

    line-height: 1;
}


.palic-weather-description {
    margin-top: 3px;

    font-size: 11px;

    opacity: .65;
}


/* ============================================================
   CURRENT DETAILS
   ============================================================ */

.palic-weather-details {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 6px;

    margin-bottom: 11px;
}


.palic-weather-item {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;
    min-height: 42px;

    padding: 6px 8px;

    border-radius: 8px;

    background:
        rgba(0, 0, 0, .035);
}


.palic-weather-item > .fa {
    flex: 0 0 17px;

    width: 17px;

    font-size: 14px;

    text-align: center;

    opacity: .60;
}


.palic-weather-item > div {
    min-width: 0;
}


.palic-weather-label {
    display: block;

    margin-bottom: 1px;

    font-size: 9px;

    line-height: 1.2;

    opacity: .58;
}


.palic-weather-item strong {
    display: block;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.25;

    white-space: nowrap;
}


/* ============================================================
   HOURLY FORECAST
   ============================================================ */

.palic-weather-hourly {
    padding-top: 10px;

    border-top:
        1px solid rgba(0, 0, 0, .08);
}


.palic-weather-hourly-title {
    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   HORIZONTAL SCROLL
   ============================================================ */

.palic-weather-hourly-scroll {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 4px;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
}


.palic-weather-hourly-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;

    gap: 5px;

    width: max-content;
    min-width: 100%;
}


/* ============================================================
   ONE HOURLY CARD
   ============================================================ */

.palic-weather-hour {
    box-sizing: border-box;

    flex: 0 0 88px;

    width: 88px;
    min-width: 88px;

    padding: 5px 6px 6px;

    border:
        1px solid rgba(0, 0, 0, .08);

    border-top-width: 3px;

    border-radius: 8px;

    background:
        rgba(0, 0, 0, .025);
}


/* TIME */

.palic-hour-time {
    margin-bottom: 1px;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.2;

    text-align: center;
}


/* WEATHER ICON */

.palic-hour-icon {
    height: 19px;

    margin: 1px 0 0;

    font-size: 15px;
    line-height: 19px;

    text-align: center;
}


/* TEMPERATURE */

.palic-hour-temp {
    margin-bottom: 4px;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.2;

    text-align: center;
}


/* ============================================================
   HOURLY VALUES
   ============================================================ */

.palic-hour-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 3px;

    margin-top: 1px;

    font-size: 8px;

    line-height: 1.3;
}


.palic-hour-row span {
    overflow: hidden;

    opacity: .58;

    white-space: nowrap;
}


.palic-hour-row strong {
    flex: 0 0 auto;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}


/* ============================================================
   WIND DIRECTION
   ============================================================ */

.palic-hour-direction {
    margin: 2px 0;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.3;

    text-align: center;
}


/* ============================================================
   WIND INDICATOR
   ============================================================ */

.palic-weather-hour.wind-ok {
    border-top-color: #43A047;
}


.palic-weather-hour.wind-warning {
    border-top-color: #F9A825;
}


.palic-weather-hour.wind-danger {
    border-top-color: #D32F2F;
}


/* ============================================================
   FOOTER
   ============================================================ */

.palic-weather-footer {
    margin-top: 7px;

    font-size: 9px;

    line-height: 1.2;

    text-align: right;

    opacity: .42;
}


/* ============================================================
   ERROR
   ============================================================ */

.palic-weather-error {
    padding: 8px;

    font-size: 11px;

    opacity: .65;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 800px) {

    .palic-weather-card {
        max-width: 100%;
    }


    .palic-weather-details {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 500px) {

    .palic-weather-card {
        padding: 12px;

        border-radius: 12px;
    }


    .palic-weather-main {
        margin-bottom: 9px;
    }


    .palic-weather-icon {
        font-size: 31px;
    }


    .palic-weather-temp {
        font-size: 22px;
    }


    .palic-weather-details {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 5px;

        margin-bottom: 9px;
    }


    .palic-weather-item {
        min-height: 39px;

        padding: 5px 7px;
    }


    .palic-weather-hour {
        flex-basis: 84px;

        width: 84px;
        min-width: 84px;
    }

}


