/* Visual foundations measured in app2-dev.mhsolutions.pl.
   Load after Bootstrap and Hydromix; keep this file independent of vendor assets. */
:root {
    --mhs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mhs-text: rgba(10, 37, 64, .88);
    --mhs-heading: #062035;
    --mhs-muted: #627d93;
    --mhs-primary: #1ea7e1;
    --mhs-primary-hover: #48b7e8;
    --mhs-primary-active: #1287bd;
    --mhs-background: #e8f6fd;
    --mhs-surface: #f7fcff;
    --mhs-header: #eef8fd;
    --mhs-border: #a9d8ef;
    --mhs-radius: 2px;
    --mhs-focus: 0 0 0 2px rgba(30, 167, 225, .2);
    --main-bg: var(--mhs-background);
    --main-color: var(--mhs-text);
}

html, body { font-size: 14px; }
body {
    background: var(--mhs-background);
    color: var(--mhs-text);
    font-family: var(--mhs-font);
    line-height: 1.5715;
    overflow: auto;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--mhs-heading);
    font-family: var(--mhs-font);
    font-weight: 600;
    letter-spacing: normal;
}
h1, .h1 { font-size: 28px; line-height: 1.35; }
h2, .h2 { font-size: 24px; line-height: 1.35; }
h3, .h3 { font-size: 20px; line-height: 1.4; }
h4, .h4 { font-size: 20px; line-height: 1.4; }
h5, .h5 { font-size: 16px; line-height: 1.5; }
a { color: var(--mhs-primary-active); }
a:hover { color: var(--mhs-primary); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--mhs-primary);
    outline-offset: 3px;
}
::selection { background: var(--mhs-primary); color: #fff; }

/* Public screens: login, recovery and messages. */
.hydro-public {
    background: var(--mhs-background) url("../img/kwiaty_1.webp") right center / cover no-repeat;
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    padding: 0;
    overflow: visible;
}
.hydro-public .content-box {
    width: 100%;
    max-width: 400px;
    min-height: 0;
    flex: 0 0 400px;
    margin: 0;
    background: var(--mhs-surface);
    border: 0;
    border-right: 1px solid var(--mhs-border);
    border-radius: 0;
    box-shadow: 4px 0 24px rgba(10, 37, 64, .06);
}
.hydro-public .content-box .content-header { padding-top: 0; }
.hydro-public .content-box .content-body { padding: 0 32px 24px; }
.hydro-sign-in, .hydro-login-form { width: 100%; }
.hydro-sign-in > p.custom-color { color: var(--mhs-muted) !important; }
.hydro-login-form .form-group { margin-bottom: 16px; }
.hydro-public .content-header > .language-picker { margin: 0 24px 16px; align-self: flex-end; }

/* Both Hydro input-control and Bootstrap form-control occur in the same forms. */
.hydro-input { color: var(--mhs-text); border-radius: var(--mhs-radius); }
.hydro-input .tc-input-wrap,
.hydro-input:hover .tc-input-wrap {
    padding: 0 11px;
    background: var(--mhs-surface);
    border: 1px solid var(--mhs-border);
    box-shadow: none;
}
.form-control, .custom-select, .hydro-textarea .tc-textarea-wrap .textarea-control {
    background: var(--mhs-surface);
    border: 1px solid var(--mhs-border);
    border-radius: var(--mhs-radius);
    color: var(--mhs-text);
    font: inherit;
    min-height: 32px;
    padding: 4px 11px;
    box-shadow: none;
}
.hydro-input .tc-input-wrap .input-control,
.hydro-input .tc-input-wrap .form-control {
    width: 100%;
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--mhs-text);
    font: inherit;
    box-shadow: none;
    outline: none;
}
.hydro-input:hover .tc-input-wrap { border-color: var(--mhs-primary); }
.hydro-input.input-focus .tc-input-wrap,
.hydro-input .tc-input-wrap:focus-within,
.form-control:focus, .custom-select:focus,
.hydro-textarea .tc-textarea-wrap .textarea-control:focus {
    background: var(--mhs-surface);
    border-color: var(--mhs-primary);
    box-shadow: var(--mhs-focus);
    color: var(--mhs-text);
    outline: none;
}
.hydro-input .tc-input-wrap .form-control:focus { box-shadow: none; }
input::placeholder, textarea::placeholder { color: #819aaf; opacity: 1; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--mhs-surface) inset !important;
    -webkit-text-fill-color: var(--mhs-text);
}
.form-control:disabled, .form-control[readonly],
.hydro-input.input-disabled .tc-input-wrap, .hydro-input.input-readonly .tc-input-wrap {
    background: #edf3f6;
    border-color: #cbdde7;
    color: #819aaf;
    box-shadow: none !important;
}
.has-error .hydro-input .tc-input-wrap,
.hydro-input .tc-input-wrap:has(.input-validation-error),
.form-control.input-validation-error { border-color: #ed5564; }

/* Compact, lightly rounded buttons matching the app2 controls. */
.hydro-button, .btn {
    min-height: 32px;
    border: 1px solid var(--mhs-border);
    border-radius: var(--mhs-radius);
    padding: 4px 15px;
    font-family: var(--mhs-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .016);
}
.hydro-button .btn-line { display: none; }
.hydro-button .btn-text { margin: 0; min-height: 0; }
.hydro-button .btn-icon { font-size: 16px; margin: 0 8px 0 0; }
.hydro-button:hover, .btn:hover { box-shadow: none; }
.btn-secondary, .btn-light {
    background: var(--mhs-surface);
    border-color: var(--mhs-border);
    color: var(--mhs-text);
}
.btn-secondary:hover, .btn-light:hover {
    background: var(--mhs-surface);
    border-color: var(--mhs-primary);
    color: var(--mhs-primary);
}
.hydro-button.btn-accent, .btn-primary {
    background: var(--mhs-primary);
    border-color: var(--mhs-primary);
    color: #fff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .043);
}
.hydro-button.btn-accent:hover, .btn-primary:hover {
    background: var(--mhs-primary-hover);
    border-color: var(--mhs-primary-hover);
    color: #fff;
}
.hydro-button.btn-accent:active, .btn-primary:active {
    background: var(--mhs-primary-active);
    border-color: var(--mhs-primary-active);
    color: #fff;
}
.hydro-button.btn-accent.btn-outline { background: transparent; color: var(--mhs-primary-active); }
.hydro-button.btn-accent.btn-outline:hover { background: var(--mhs-header); }
.hydro-button:disabled, .hydro-button.btn-disabled, .btn:disabled, .btn.disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}
.hydro-switcher .tc-switcher-wrap .tc-switcher-handle,
.hydro-switcher .tc-switcher-wrap:hover .tc-switcher-handle { background: var(--mhs-border); border-color: var(--mhs-border); }
.hydro-switcher .tc-switcher-wrap .tc-switcher-handle .check-detector,
.hydro-switcher .tc-switcher-wrap:hover .tc-switcher-handle .check-detector { background: #fff; }
.hydro-switcher.checked .tc-switcher-wrap .tc-switcher-handle { background: var(--mhs-primary); border-color: var(--mhs-primary); }
.hydro-switcher:focus-within .tc-switcher-handle { box-shadow: var(--mhs-focus); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--mhs-primary); }

.card, .toast { background: var(--mhs-surface); border-color: var(--mhs-border); border-radius: var(--mhs-radius); box-shadow: none; }
.card-header, .card-footer, .toast-header { background: var(--mhs-header); border-color: var(--mhs-border); color: var(--mhs-heading); }
.table thead th { background: var(--mhs-header); color: var(--mhs-heading); font-weight: 600; }
.table th, .table td { border-color: var(--mhs-border); }
.hydro-menu .menu-item.active > .item-link { color: var(--mhs-primary-active); }
.app-wrapper.app-container.row { margin: 0; min-height: 100%; height: auto; }
.app-wrapper.app-container > .col-sm-6 { padding-top: 24px; padding-bottom: 24px; }

@media (max-width: 767px) {
    .hydro-public .content-box .content-body { padding: 0 24px 24px; }
    .app-wrapper.app-container > .col-sm-3 { display: none; }
    .app-wrapper.app-container > .col-sm-6 { flex: 0 0 100%; max-width: 100%; padding: 16px; }
}

@media (max-width: 600px) {
    .hydro-public { background: var(--mhs-surface); }
    .hydro-public .content-box {
        max-width: none;
        flex: 1 1 auto;
        border-right: 0;
        box-shadow: none;
    }
}

/* Separate the brand and language bar from the sign-in form. */
.hydro-public .login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--mhs-background);
    border-bottom: 1px solid var(--mhs-border);
}
.hydro-public .login-header .language-toggle:hover,
.hydro-public .login-header .language-toggle[aria-expanded="true"] {
    background: #fff;
    border-color: var(--mhs-primary);
}
.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #25435b;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}
.login-brand img { display: block; width: 36px; height: 36px; }

/* Compact language dropdown on the same surface as the form. */
.language-picker .language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid var(--mhs-border);
    border-radius: var(--mhs-radius);
    background: var(--mhs-surface);
    color: var(--mhs-text);
    font: inherit;
    cursor: pointer;
    box-shadow: none;
}
.language-picker img { display: block; width: 24px; height: 24px; object-fit: contain; }
.language-picker .language-toggle:hover,
.language-picker .language-toggle[aria-expanded="true"] { background: var(--mhs-header); }
.language-picker .language-menu {
    min-width: 160px;
    padding: 4px;
    background: var(--mhs-surface);
    border: 1px solid var(--mhs-border);
    border-radius: var(--mhs-radius);
    box-shadow: 0 4px 12px rgba(10, 37, 64, .1);
}
.language-picker .language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 6px 10px;
    color: var(--mhs-text);
    font: inherit;
    cursor: pointer;
    border-radius: var(--mhs-radius);
}
.language-picker .language-option:hover,
.language-picker .language-option:focus,
.language-picker .language-option.active { background: var(--mhs-header); color: var(--mhs-primary-active); }
