/* Own reset. It replaces the parts of Bootstrap 5.3.3's reboot that the UI relied on (the vendored Bootstrap was
   removed): same values, so nothing moves. Rules below this block override it. */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    color: #212529;
    background-color: #fff;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

h1, h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: calc(1.375rem + 1.5vw);
}

h3 {
    font-size: calc(1.3rem + 0.6vw);
}

@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

strong {
    font-weight: bolder;
}

code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    color: #d63384;
    word-wrap: break-word;
}

img, svg {
    vertical-align: middle;
}

label {
    display: inline-block;
}

button {
    border-radius: 0;
    text-transform: none;
}

button:not(:disabled) {
    cursor: pointer;
}

input, button, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

textarea {
    resize: vertical;
}

[hidden] {
    display: none !important;
}

.error-title {
    color: #dc3545;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

a {
    color: #006bb7;
}

/* Nav item — global override so NavLink's rendered <a> gets correct styles */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: var(--typography-font-family-font-base, Inter), sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: rgba(166, 134, 87, 0.15);
    border: 1px solid rgba(166, 134, 87, 0.25);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-item:hover {
    background: rgba(166, 134, 87, 0.25);
    color: #ffffff !important;
    border-color: rgba(166, 134, 87, 0.45);
}

.nav-item.active {
    background: rgba(166, 134, 87, 0.3);
    color: #ffffff !important;
    border-color: rgba(166, 134, 87, 0.5);
}

/* Login input — global so InputText's rendered <input> gets correct styles */
.field-input {
    width: 100%;
    box-sizing: border-box;
    background: #1e3048 !important;
    border: 1px solid rgba(166, 134, 87, 0.25) !important;
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-family: var(--typography-font-family-font-base, Inter), sans-serif;
    font-size: 0.875rem;
    color: #ffffff !important;
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

.field-input:focus {
    border-color: #a68657 !important;
    background: #243a55 !important;
    box-shadow: 0 0 0 3px rgba(166, 134, 87, 0.15) !important;
}

.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #1e3048 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    border: 1px solid rgba(166, 134, 87, 0.25) !important;
    transition: background-color 5000s ease-in-out 0s;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}
