/* ==========================================
   BOTRIC TRADE — AUTHENTICATION REUSABLE INPUT SYSTEM
   ========================================== */

.qx-form-group,
.form-group-floating {
    position: relative;
    margin-bottom: 1.25rem;
}

.qx-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Outside / Above Input Field Labels */
.qx-field-label,
.qx-form-group label:not(.form-check-label) {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFF7E5 !important;
    margin-bottom: 0.45rem;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.qx-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.qx-input-icon {
    position: absolute;
    left: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(215, 168, 74, 0.1);
    border: 1px solid rgba(215, 168, 74, 0.25);
    border-radius: 10px;
    color: #D7A84A;
    z-index: 3;
    pointer-events: none;
    transition: all 0.3s ease;
}

.qx-input-icon svg {
    width: 18px;
    height: 18px;
}

/* Reusable Dark Input & Select Fields */
.qx-input,
.qx-select,
.form-group-floating .form-control {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 1rem 0.75rem 3.4rem;
    background: #0E0A06 !important;
    border: 1px solid rgba(215, 168, 74, 0.28) !important;
    border-radius: 14px !important;
    color: #FFF7E5 !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.qx-input::placeholder,
.qx-select::placeholder {
    color: #918570 !important;
    font-size: 0.88rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Webkit / Chrome Autofill Fix to preserve Dark & Gold Aesthetics */
.qx-input:-webkit-autofill,
.qx-input:-webkit-autofill:hover,
.qx-input:-webkit-autofill:focus,
.qx-select:-webkit-autofill {
    -webkit-text-fill-color: #FFF7E5 !important;
    -webkit-box-shadow: 0 0 0px 1000px #0E0A06 inset !important;
    transition: background-color 5000s ease-in-out 0s;
    border-color: rgba(215, 168, 74, 0.45) !important;
}

.qx-input:focus,
.qx-select:focus,
.form-group-floating .form-control:focus {
    background: #171108 !important;
    border-color: #D7A84A !important;
    box-shadow: 0 0 18px rgba(215, 168, 74, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    outline: none;
}

.qx-input-wrapper:focus-within .qx-input-icon {
    background: rgba(215, 168, 74, 0.25);
    border-color: #D7A84A;
    color: #F4D77A;
}

.qx-password-toggle {
    position: absolute;
    right: 14px;
    color: #918570;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s ease;
}

.qx-password-toggle:hover {
    color: #F4D77A;
}


