/* ==== LOGIN STYLES ==== */

/* Tipografía reducida */
body, p, span, div, label, .btn, .form-control, .form-select {
    font-size: 0.78rem;
}

h3.fw-bold {
    font-size: 0.95rem !important;
}

/* Botones */
.btn {
    font-size: 0.75rem;
    padding: 0.28rem 0.6rem;
}

/* Formularios */
.form-label,
label {
    font-size: 0.76rem;
}

.form-control,
.form-select {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
}

/* ──────────────────────────────────────────────────────────────────── */
/* Searchable select */
/* ──────────────────────────────────────────────────────────────────── */

.searchable-select {
    position: relative;
}

.searchable-select-display {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.searchable-select-display:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.searchable-select-display.placeholder-text {
    color: #6c757d;
}

.searchable-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 1055;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.searchable-select-dropdown.open {
    display: block;
}

.searchable-select-search-wrap {
    padding: 6px 8px;
    border-bottom: 1px solid #e9ecef;
}

.searchable-select-input {
    width: 100%;
    font-size: 0.76rem;
}

.searchable-select-options {
    max-height: 180px;
    overflow-y: auto;
}

.searchable-select-option {
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.76rem;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.1s;
}

.searchable-select-option:hover {
    background: #e7f1ff;
    color: #0d6efd;
}

.searchable-select-option.selected {
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.searchable-select-option.no-results {
    color: #adb5bd;
    cursor: default;
    font-style: italic;
}

/* ──────────────────────────────────────────────────────────────────── */
/* Password field wrapper */
/* ──────────────────────────────────────────────────────────────────── */

.password-field-wrapper {
    position: relative;
}

.password-field-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-field-wrapper .password-toggle:hover {
    color: #0d6efd;
}

.password-field-wrapper .password-toggle:focus {
    outline: none;
}

.password-field-wrapper .password-toggle i {
    font-size: 1rem;
    pointer-events: none;
}

.password-field-wrapper .form-control {
    padding-right: 42px;
}

/* Card */
.card-custom {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}

/* Responsive */
@media (max-width: 400px) {
    .card-custom {
        border-radius: 0.75rem;
    }

    h3.fw-bold {
        font-size: 0.88rem !important;
    }
}
