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

:root {
    --rc-neutral-0: var(--surface, #FFFFFF);
    --rc-neutral-50: var(--background, #FDFDFC);
    --rc-neutral-100: var(--surface-hover, #F8F7F4);
    --rc-neutral-200: var(--border, #E8E6E2);
    --rc-neutral-300: var(--border-strong, #D8D5CF);
    --rc-neutral-400: var(--text-muted, #9A9A9A);
    --rc-neutral-700: var(--text-secondary, #5F5F5F);
    --rc-neutral-800: #2E2E2E;
    --rc-neutral-900: var(--text-primary, #171717);
    --rc-neutral-950: #111111;

    --rc-primary-50: var(--primary-soft, #FFF3E5);
    --rc-primary-100: #FFD4AA;
    --rc-primary-200: #FFB66F;
    --rc-primary-400: var(--primary, #FD450A);
    --rc-primary-500: var(--primary, #FD450A);
    --rc-primary-600: var(--primary-hover, #DC6E12);
    --rc-primary-900: #7A3807;

    --rc-success-50: var(--success-soft, #EAF8F1);
    --rc-success-500: var(--success, #49B78A);
    --rc-warning-50: var(--warning-soft, #FFF7E8);
    --rc-warning-500: var(--warning, #E6A23C);
}

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: var(--rc-auth-page-bg, var(--rc-neutral-50)) !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: var(--background, #FDFDFC) !important;
}

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

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

/* Labels (more restrained + consistent) */
.form-label.textsmall {
    color: var(--rc-auth-label, var(--rc-neutral-700)) !important;
    letter-spacing: 0.01em;
}

.rc-auth-main {
    height: 100vh;
    background-color: var(--rc-auth-page-bg, var(--rc-neutral-50)) !important;
}

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

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

.rc-card-white-rounded {
    background-color: transparent !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: none;
}

/* Keep the standalone brand mark black on every auth step. */
.rc-auth-logo-link,
body.rc-auth-login a.rc-auth-logo-link {
    color: #000000 !important;
}

.rc-demo-btn {
    padding: 6px 10px !important;
    background-color: var(--rc-auth-surface-muted, var(--rc-neutral-100)) !important;
    color: var(--rc-auth-input, var(--rc-neutral-900)) !important;
    border-radius: 999px !important;
    border: 1px solid var(--rc-auth-border, var(--rc-neutral-200));
    display: flex;
    align-items: center;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.rc-demo-btn a {
    color: var(--rc-auth-input, var(--rc-neutral-900)) !important;
    text-decoration: none;
}

.rc-heading-login {
    color: var(--rc-auth-heading, var(--rc-neutral-900)) !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-auth-body, var(--rc-neutral-700)) !important;
    font-size: 0.8125rem;
    line-height: 1.5;
    font-weight: 400 !important;
    margin: 0;
}

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

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

body.rc-auth-login a,
body.rc-auth-login .rc-link-forgot {
    color: var(--rc-auth-link, var(--rc-primary-600)) !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-auth-soft, var(--rc-neutral-400)) !important;
    font-size: 0.6875rem;
    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: none !important;
    background-color: var(--danger-soft, #FFF0F0) !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.rc-alert-error strong {
    color: var(--danger, #E45353) !important;
    font-size: 0.65rem !important;
}

.rc-alert-success {
    border: 1.5px solid var(--rc-success-500) !important;
    background-color: var(--rc-success-50) !important;
}

.rc-alert-success strong {
    color: var(--rc-success-500) !important;
}

.rc-btn-close-tiny {
    font-size: 6px !important;
    padding: 7px 4px !important;
}

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

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

.rc-input-group-outline {
    border-radius: 10px !important;
    border: 1.2px solid var(--rc-input-border, #E8E6E2) !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, #FD450A) !important;
    box-shadow: 0 0 0 0.2rem var(--rc-focus-ring, rgba(253, 69, 10, 0.18));
}

/* 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, #FD450A) !important;
}

/* Also treat autofill as "filled" */
.rc-input-group-outline:has(input:-webkit-autofill) {
    border-color: var(--rc-input-border-focus, #FD450A) !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.8125rem !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-auth-placeholder, var(--rc-neutral-400));
}

.rc-link-forgot {
    color: var(--rc-auth-link, var(--rc-primary-600)) !important;
}

.rc-input-no-border {
    color: var(--rc-auth-input, var(--rc-neutral-900)) !important;
}

.rc-btn-continue {
    background-color: var(--rc-primary, #FD450A) !important;
    color: var(--text-primary, #171717) !important;
    border-radius: var(--rc-primary-button-radius, 999px) !important;
    border: 1px solid var(--rc-primary, #FD450A) !important;
    font-weight: 400 !important;
    font-size: var(--rc-primary-button-font-size, 0.7125rem) !important;
    min-height: var(--rc-primary-button-min-height, 35px);
    opacity: 1;

    box-sizing: border-box;
    padding: var(--rc-primary-button-padding, 9.5px 16px 10px 16px);
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rc-primary-button-gap, 10px);
    text-align: center;
    vertical-align: middle;
}

.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-button-hover-bg, #DC6E12) !important;
    border-color: var(--rc-primary-button-hover-border, #360069) !important;
    color: #ffffff !important;
}

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

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

.rc-footer-powered {
    font-size: 10px !important;
    color: var(--rc-auth-soft, var(--rc-neutral-400)) !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 */
.form-check:has(.custom-checkbox) {
    display: inline-flex;
    align-items: flex-start;
    gap: 0;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    border: 2px solid #000000 !important;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
    margin-right: 0 !important;
}

.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 .custom-checkbox + .form-check-label {
    margin-left: 0;
    font-size: 0.75rem;
    line-height: 1.1;
    position: relative;
    top: -1px;
}
