/* Gradient background for all auth pages */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Glass effect card */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Inputs */
.input-focus:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-1px);
}

/* Tiny animations (optional) */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ----- Select2: single select ----- */
.select2-container .select2-selection--single {
    height: 48px;
    /* match input height */
    border: 1px solid #D1D5DB;
    /* gray-300 */
    border-radius: 0.5rem;
    /* rounded-lg */
    background-color: #fff;
    display: flex;
    align-items: center;
    transition: box-shadow .2s, border-color .2s;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    /* vertically center text */
    padding: 0 2.5rem 0 1rem;
    /* space + room for arrow */
    color: #111827;
    /* gray-900 */
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6B7280;
    /* gray-500 */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0.75rem;
    /* 12px */
}

/* Focus/Opened states = same as .input-focus */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #667eea;
    /* primary */
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .10);
}

/* ----- Select2: multiple select (tags) ----- */
.select2-container .select2-selection--multiple {
    min-height: 48px;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    background-color: #fff;
    padding: 4px 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #EEF2FF;
    /* indigo-50 */
    color: #4338CA;
    /* indigo-700 */
    border: 0;
    padding: .25rem .5rem;
    border-radius: 9999px;
    /* pill */
    font-size: .875rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: .35rem;
    color: #6366F1;
}

/* ----- Dropdown panel ----- */
.select2-container .select2-dropdown {
    border: 1px solid #E5E7EB;
    /* gray-200 */
    border-radius: .75rem;
    /* rounded-xl */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(17, 24, 39, .08);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #EEF2FF;
    color: #4338CA;
}

/* Search input inside dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #E5E7EB;
    border-radius: .5rem;
    padding: .5rem .75rem;
    outline: none;
}

/* RTL tweak */
html[dir='rtl'] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 1rem 0 2.5rem;
}

html[dir='rtl'] .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: .75rem;
}