/*
 * Site overrides that keep the pre-Bootstrap 5 look on top of Bootstrap 5.3.
 * Loaded after bootstrap.min.css and before limra/style.css.
 * The site sets html { font-size: 10px }, and Bootstrap 5 sizes most things in rem,
 * so values here are in px to match the original rendering.
 */

/* Typography and links */
body {
    line-height: 1.42857143;
}

a {
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

ul,
ol {
    padding-left: 40px;
    margin-bottom: 10px;
}

.text-danger {
    color: #a94442 !important;
}

/* Container and grid gutters: 30px gutters, fixed container widths */
.container,
.row {
    --bs-gutter-x: 30px;
}

.container {
    max-width: none;
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

/* Forms */
.form-row-spaced {
    margin-bottom: 15px;
}

.checkbox {
    position: relative;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .form-row-spaced > .col-form-label {
        padding-top: 7px;
        padding-bottom: 0;
        margin-bottom: 0;
        font-size: inherit;
        line-height: inherit;
        text-align: right;
    }
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.form-control:focus {
    color: #555;
    background-color: #fff;
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

/* Buttons */
.btn {
    --bs-btn-padding-x: 12px;
    --bs-btn-padding-y: 6px;
    --bs-btn-font-size: 14px;
    --bs-btn-border-radius: 4px;
    line-height: 1.42857143;
}

.btn-secondary {
    --bs-btn-color: #333;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #ccc;
    --bs-btn-hover-color: #333;
    --bs-btn-hover-bg: #e6e6e6;
    --bs-btn-hover-border-color: #adadad;
    --bs-btn-active-color: #333;
    --bs-btn-active-bg: #e6e6e6;
    --bs-btn-active-border-color: #adadad;
    --bs-btn-disabled-color: #333;
    --bs-btn-disabled-bg: #fff;
    --bs-btn-disabled-border-color: #ccc;
    --bs-btn-focus-shadow-rgb: 173, 173, 173;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-danger a {
    color: #843534;
    font-weight: 700;
}

/* Navigation: render .nav as stacked blocks, and .login-nav as a right float */
.nav {
    display: block;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav > li {
    position: relative;
    display: block;
}

@media (min-width: 768px) {
    .login-nav {
        float: right !important;
        margin-right: -15px;
    }
}
