/* Auth pages: index.php + index1.php (check-in login) */

html,
body {
    height: 100%;
}

/* Opt-in: disable scrolling on specific auth pages only */
body.rc-auth-no-scroll {
    height: 100vh;
    overflow: hidden;
}

/* Preserve existing #content background behavior */
#content {
    background-color: #f9fafb !important;
}

body.rc-auth-no-scroll #content {
    height: 100vh;
    overflow: hidden;
}

/* Tighten auth-page spacing so it doesn't overflow the viewport */
body.rc-auth-no-scroll #content > .container {
    height: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Used to vertically center the single auth column */
body.rc-auth-no-scroll #content .rc-auth-row-center {
    min-height: 100%;
}

body.rc-auth-no-scroll #content .mt-10 {
    margin-top: 0 !important;
}

/* When a page explicitly opts into white, it must beat #content (ID) specificity */
#content.rc-auth-main--white {
    background-color: #ffffff !important;
}

@media (max-width: 768px) {
    #content {
        background-color: #ffffff !important;
    }
}

.textsmall {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
}

/* Labels (more restrained + consistent) */
.form-label.textsmall {
    color: var(--rc-text-muted, #70707b) !important;
    letter-spacing: 0.01em;
}

.rc-auth-main {
    height: 100vh;
    background-color: rgba(11, 31, 42, 0.04) !important;
}

/* Use on pages that should be plain white */
.rc-auth-main--white {
    background-color: #ffffff !important;
}

.rc-max-w-28 {
    max-width: 28rem;
}

.rc-card-white-rounded {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    border: none !important;
}

.rc-demo-btn {
    padding: 6px 10px !important;
    background-color: var(--rc-light, #f3e5f5) !important;
    color: var(--rc-text-body, #33333f) !important;
    border-radius: 999px !important;
    border: 1px solid var(--rc-gray-200, #e9e9eb);
    display: flex;
    align-items: center;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
}

.rc-demo-btn a {
    color: var(--rc-text-body, #33333f) !important;
    text-decoration: none;
}

.rc-heading-login {
    color: var(--rc-text-heading, #08131a) !important;
    font-weight: 500 !important;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.25rem 0;
}

.rc-text-desc {
    color: var(--rc-text-muted, #70707b) !important;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 400 !important;
    margin: 0;
}

.rc-link-cta {
    color: var(--rc-primary, #0b1f2a) !important;
    font-weight: 500 !important;
}

/* Index (login): enforce brand text/link tokens on that page only */
body.rc-auth-login {
    color: var(--rc-text-body, #33333f);
}

body.rc-auth-login a,
body.rc-auth-login .rc-link-forgot {
    color: var(--rc-primary, #0b1f2a) !important;
}

.rc-divider-or {
    border: none !important;
}

/* Remove divider lines for the OR label (theme uses ::before/::after borders) */
.divider-center.rc-divider-or {
    display: block !important;
    text-align: center;
    color: var(--rc-text-muted, #70707b) !important;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.divider-center.rc-divider-or::before,
.divider-center.rc-divider-or::after {
    content: none !important;
    border-top: 0 !important;
}

.rc-alert-error {
    border: 1.5px solid rgb(122, 1, 1) !important;
    background-color: rgba(255, 232, 232, 0.41) !important;
}

.rc-alert-error strong {
    color: rgb(129, 0, 0) !important;
}

.rc-alert-success {
    border: 1.5px solid rgb(0, 129, 54) !important;
    background-color: rgba(232, 255, 244, 0.41) !important;
}

.rc-alert-success strong {
    color: rgb(0, 129, 54) !important;
}

.rc-btn-close-tiny {
    font-size: 5px !important;
    padding: 8px 3.5px !important;
}

.rc-btn-close-circle {
    background-color: #ffffff;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.rc-btn-close-circle span {
    font-size: 7px !important;
}

.rc-input-group-outline {
    border-radius: 10px !important;
    border: 1.2px solid var(--rc-input-border, #d6d6da) !important;

    background-color: var(--rc-input-bg, #ffffff);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.rc-input-group-outline:focus-within {
    border-color: var(--rc-input-border-focus, #0b1f2a) !important;
    box-shadow: 0 0 0 0.2rem var(--rc-focus-ring, rgba(11, 31, 42, 0.2));
}

/* When the field is filled, keep a subtle purple border */
.rc-input-group-outline:has(input:not(:placeholder-shown)) {
    border-color: var(--rc-input-border-focus, #0b1f2a) !important;
}

/* Also treat autofill as "filled" */
.rc-input-group-outline:has(input:-webkit-autofill) {
    border-color: var(--rc-input-border-focus, #0b1f2a) !important;
}

.rc-input-group-outline .input-group-text {
    background: transparent !important;
    border: none !important;
    padding-left: 0.75rem;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
}

/* Bootstrap 4 compatibility wrappers (prevents icon/control overlap) */
.rc-input-group-outline .input-group-prepend,
.rc-input-group-outline .input-group-append {
    display: flex;
    align-items: center;
}

.rc-input-group-outline .form-control {
    min-width: 0;
}

.rc-icon-18 {
    width: 18px !important;
    height: 18px !important;
}

.rc-input-no-border {
    border: none !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.875rem !important;
    border-radius: 12px !important;
    background-color: transparent !important;
}

/* Ensure theme's .input-group-light doesn't tint the control */
.rc-input-group-outline .form-control,
.rc-input-group-outline .form-control:focus {
    background-color: transparent !important;
}

/* Chrome/Edge autofill can force a blue/yellow background; override it */
.rc-input-group-outline input:-webkit-autofill,
.rc-input-group-outline input:-webkit-autofill:hover,
.rc-input-group-outline input:-webkit-autofill:focus,
.rc-input-group-outline input:-webkit-autofill:active {
    -webkit-text-fill-color: inherit;
    caret-color: inherit;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 9999s ease-out 0s;
}

/* Standards-based autofill (where supported) */
.rc-input-group-outline input:autofill {
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.rc-input-no-border::placeholder {
    color: var(--rc-input-placeholder, #b4b4bb);
}

.rc-link-forgot {
    color: var(--rc-primary, #0b1f2a) !important;
}

.rc-btn-continue {
    background-color: var(--rc-primary, #0b1f2a) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    border: 1px solid var(--rc-primary, #0b1f2a) !important;
    font-weight: 400 !important;
    font-size: 0.775rem !important;
    height: 44px !important;
    opacity: 1;

    box-sizing: border-box;
    padding: 0 25px !important;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;

    width: 100% !important;
}

.rc-btn-continue .rc-btn-icon {
    filter: brightness(0) invert(1);
    pointer-events: none;
    flex: 0 0 auto;
}

.rc-btn-continue .rc-btn-icon--loading {
    display: none;
}

.rc-btn-continue .rc-btn-text--loading {
    display: none !important;
}

.rc-btn-continue .rc-btn-text--default {
    display: inline-block;
}

.rc-btn-continue.is-loading {
    opacity: 0.95;
}

.rc-btn-continue.is-loading .rc-btn-icon--default {
    display: none;
}

.rc-btn-continue.is-loading .rc-btn-icon--loading {
    display: inline-block;
}

.rc-btn-continue.is-loading .rc-btn-text--default {
    display: none !important;
}

.rc-btn-continue.is-loading .rc-btn-text--loading {
    display: inline-block !important;
}

.rc-btn-continue:hover,
.rc-btn-continue:focus,
.rc-btn-continue:active {
    background-color: var(--rc-primary-hover, #0e2a39) !important;
    border-color: var(--rc-primary-hover, #0e2a39) !important;
    color: #ffffff !important;
}

/* Extra specificity to beat Bootstrap utilities (e.g. .p-3) if they load later */
.btn.rc-btn-continue {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 16px !important;
}

.rc-btn-continue b {
    font-weight: 500;
}

.rc-footer-powered {
    font-size: 11px !important;
}

.rc-right-col {
    height: 100vh;
}

.rc-right-img {
    width: 100%;
    object-fit: contain;
}

/* Mobile: hide the right-side image column */
@media (max-width: 768px) {
    .rc-right-col,
    .rc-right-col.d-flex {
        display: none !important;
    }
}

/* Custom checkbox in index.php */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    border: 2px solid rgba(220, 208, 255, 0.5) !important;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.custom-checkbox:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body .form-check .form-check-label {
    margin-left: 8px;
    font-size: 0.8125rem;
}
