/* ============================================
   Premium Auth Pages Styling
   Modern Glassmorphism Centered Design
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Premium Theme - Using Site Brand Colors */
:root {
    /* Primary Colors - Cyan Theme */
    --auth-primary: #00bcd4;
    --auth-primary-dark: #0891b2;
    --auth-primary-light: #22d3ee;
    --auth-secondary: #00bcd4;
    --auth-accent: #0891b2;
    --auth-success: #22c55e;
    --auth-error: #ef4444;
    /* Dark Theme Colors */
    --auth-dark: #1C2340;
    --auth-darker: #0C0F1E;
    /* Glass Effects */
    --auth-glass-bg: rgba(28, 35, 64, 0.6);
    --auth-glass-border: rgba(255, 255, 255, 0.1);
    /* Text Colors */
    --auth-text-primary: #ffffff;
    --auth-text-secondary: rgba(255, 255, 255, 0.7);
    --auth-text-muted: rgba(255, 255, 255, 0.5);
    /* Input Styling */
    --auth-input-bg: rgba(255, 255, 255, 0.08);
    --auth-input-border: rgba(255, 255, 255, 0.12);
    --auth-input-focus: rgba(0, 188, 212, 0.4);
}

/* Reset & Base */
.auth-premium-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Container */
.auth-premium-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
    background: var(--auth-darker);
}

/* Animated Background */
.auth-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.auth-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(2px);
}

.auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(0, 188, 212, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(8, 145, 178, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--auth-darker) 0%, rgba(12, 15, 30, 0.95) 100%);
}

/* Animated Orbs */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: orbFloat 20s infinite ease-in-out;
}

.auth-orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.35) 0%, rgba(8, 145, 178, 0.15) 100%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.auth-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.25) 0%, rgba(14, 116, 144, 0.1) 100%);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

.auth-orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* Main Card Container */
.auth-main-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    background: var(--auth-glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid var(--auth-glass-border);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: visible;
    animation: cardAppear 0.6s ease-out;
}

/* Wide card for register */
.auth-main-card.auth-card-wide {
    max-width: 560px;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Glow Effect */
.auth-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 188, 212, 0.6),
            rgba(8, 145, 178, 0.6),
            transparent);
}

/* Card Header */
.auth-card-header {
    padding: 2.5rem 2.5rem 0;
    text-align: center;
}

.auth-card-header img {
    max-height: 58px !important;
    margin-bottom: 15px;
    object-fit: contain;
}

.auth-logo {
    width: auto;
    height: auto;
    max-width: 180px;
    margin: 0 auto 1.5rem;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.auth-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin-bottom: 0.5rem;
}

.auth-card-subtitle {
    font-size: 0.95rem;
    color: var(--auth-text-muted);
    line-height: 1.5;
}

/* Card Body */
.auth-card-body {
    padding: 2rem 2.5rem 2.5rem;
}

/* Alert Styling */
.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: alertSlide 0.4s ease-out;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.auth-alert i {
    font-size: 1.1rem;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

.auth-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-text-secondary);
    margin-bottom: 0.5rem;
}

.auth-form-label .required {
    color: var(--auth-error);
    margin-left: 2px;
}

/* Input Styling */
.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 12px;
    color: var(--auth-text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
}

.auth-input::placeholder {
    color: var(--auth-text-muted);
}

/* Animated Input Wrapper with Rotating Border - Same as Submit Button */
.auth-input-wrapper-animated {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Background layer - the input background */
.auth-input-wrapper-animated::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--auth-dark);
    border-radius: 10px;
    z-index: 0;
    transition: all 0.3s ease;
}

/* Rotating border layer */
.auth-input-wrapper-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    padding-bottom: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--auth-primary-light) 10%,
            #fff 15%,
            var(--auth-primary-light) 20%,
            transparent 25%,
            transparent 50%,
            var(--auth-primary-light) 60%,
            #fff 65%,
            var(--auth-primary-light) 70%,
            transparent 75%,
            transparent 100%);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Show rotating border when input is focused */
.auth-input-wrapper-animated:focus-within::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.auth-input-wrapper-animated:focus-within::after {
    inset: 2px;
}

/* Input styling inside animated wrapper */
.auth-input-wrapper-animated .auth-input,
.auth-input-wrapper-animated .auth-input-group .auth-input {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    border-radius: 10px;
}

.auth-input-wrapper-animated:focus-within .auth-input {
    background: transparent;
    outline: none;
    box-shadow: none;
}

/* Handle input group inside animated wrapper */
.auth-input-wrapper-animated .auth-input-group {
    position: relative;
    z-index: 1;
}

.auth-input-wrapper-animated .auth-password-toggle {
    z-index: 2;
}

/* Dropdown trigger inside animated wrapper */
.auth-input-wrapper-animated.auth-dropdown-trigger {
    cursor: pointer;
}

.auth-input-wrapper-animated .auth-dropdown-select {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
}

/* Show animation when parent dropdown is active */
.auth-custom-dropdown.active .auth-input-wrapper-animated::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    background: rgba(255, 255, 255, 0.1);
}

.auth-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

/* Password Input */
.auth-input-group {
    position: relative;
}

.auth-input-group .auth-input {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Options Row */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-primary);
    cursor: pointer;
    border-radius: 4px;
}

.auth-checkbox-label {
    font-size: 0.875rem;
    color: var(--auth-text-secondary);
    cursor: pointer;
    user-select: none;
}

.auth-forgot-link {
    font-size: 0.875rem;
    color: var(--auth-primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--auth-primary);
}

/* Submit Button */
/* Submit Button - Premium Rotating Border Effect */
.auth-submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1;
}

/* Base background layer */
.auth-submit-btn::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    border-radius: 11px;
    z-index: -1;
    transition: all 0.3s ease;
}

/* Rotating border layer - Larger to cover wide buttons */
.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    /* Larger to ensure coverage of wide buttons */
    padding-bottom: 250%;
    /* Maintain square aspect ratio */
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--auth-primary-light) 10%,
            #fff 15%,
            var(--auth-primary-light) 20%,
            transparent 25%,
            transparent 50%,
            var(--auth-primary-light) 60%,
            #fff 65%,
            var(--auth-primary-light) 70%,
            transparent 75%,
            transparent 100%);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.auth-submit-btn:hover::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.auth-submit-btn:hover::after {
    inset: 2px;
    /* Consistent 2px border width */
    background: linear-gradient(135deg, var(--auth-primary-dark) 0%, var(--auth-primary) 100%);
    backdrop-filter: blur(4px);
}

.auth-submit-btn:active {
    transform: translateY(0) scale(0.98);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes rotateBorder {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Button Spinner */
.auth-btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--auth-glass-border), transparent);
}

.auth-divider-text {
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Button */
.auth-social-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--auth-glass-border);
    border-radius: 12px;
    color: var(--auth-text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.auth-social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--auth-text-primary);
}

.auth-social-btn svg {
    width: 20px;
    height: 20px;
}

/* Footer Links */
.auth-card-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--auth-glass-border);
}

.auth-footer-text {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
}

.auth-footer-link {
    color: var(--auth-primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: white;
}

.auth-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--auth-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-secondary-link:hover {
    color: var(--auth-accent);
}

/* Admin Button */
.auth-admin-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--auth-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 20;
}

.auth-admin-btn:hover {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
    color: white;
}

/* Error Text */
.auth-error-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #fca5a5;
}

/* Floating Labels Animation */
@keyframes labelFloat {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-group {
    animation: labelFloat 0.4s ease-out forwards;
}

.auth-form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.auth-form-group:nth-child(2) {
    animation-delay: 0.15s;
}

.auth-form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.auth-form-group:nth-child(4) {
    animation-delay: 0.25s;
}

.auth-form-group:nth-child(5) {
    animation-delay: 0.3s;
}

.auth-form-group:nth-child(6) {
    animation-delay: 0.35s;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-premium-page {
        padding: 1rem;
    }

    .auth-main-card {
        border-radius: 20px;
    }

    .auth-card-header {
        padding: 2rem 1.5rem 0;
    }

    .auth-card-body {
        padding: 1.5rem;
    }

    .auth-card-title {
        font-size: 1.5rem;
    }

    .auth-options-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .auth-admin-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Phone Input Styling - Dark Theme */
/* Only apply relative to the input wrapper, NOT the container */
.auth-premium-page .iti:not(.iti--container) {
    width: 100% !important;
    position: relative !important;
    z-index: 100 !important;
}

/* CRITICAL: The dropdown container MUST be absolute for correct positioning */
.auth-premium-page .iti.iti--container {
    position: absolute !important;
    z-index: 99999 !important;
}

.auth-premium-page .iti__selected-flag {
    background: transparent !important;
    border-radius: 12px 0 0 12px !important;
}

.auth-premium-page .iti__country-list {
    background: var(--auth-dark) !important;
    background-color: #1C2340 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
    max-height: 250px !important;
    z-index: 9999 !important;
}

.auth-premium-page .iti__country-list::-webkit-scrollbar {
    width: 6px;
}

.auth-premium-page .iti__country-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.auth-premium-page .iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(0, 188, 212, 0.4);
    border-radius: 3px;
}

.auth-premium-page .iti__country {
    padding: 8px 12px !important;
    color: #fff !important;
    background: transparent !important;
}

.auth-premium-page .iti__country:hover,
.auth-premium-page .iti__country.iti__highlight {
    background: rgba(0, 188, 212, 0.2) !important;
    color: #fff !important;
}

.auth-premium-page .iti__country-name {
    color: #fff !important;
}

.auth-premium-page .iti__dial-code {
    color: rgba(255, 255, 255, 0.6) !important;
}

.auth-premium-page .iti__flag-box {
    margin-right: 8px !important;
}

.auth-premium-page .iti__divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.auth-premium-page .iti__arrow {
    border-top-color: rgba(255, 255, 255, 0.7) !important;
}

.auth-premium-page .iti__arrow--up {
    border-bottom-color: rgba(255, 255, 255, 0.7) !important;
}

.auth-premium-page .iti--separate-dial-code .iti__selected-dial-code {
    color: var(--auth-text-secondary) !important;
}

/* Fix for phone dropdown appearing behind submit button */
.auth-form-group:has(.iti) {
    position: relative;
    z-index: 100;
}

/* Fallback for browsers that don't support :has() */
.auth-phone-group {
    position: relative;
    z-index: 100;
}

/* Nano Banana Gradient Text */
.auth-gradient-text {
    background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Back to Home Link */
.auth-back-link {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 20;
}

.auth-back-link:hover {
    color: var(--auth-text-primary);
}

.auth-back-link i {
    font-size: 1.1rem;
}

/* Feature Pills */
.auth-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.auth-feature-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--auth-text-muted);
}

.auth-feature-pill i {
    color: var(--auth-success);
    font-size: 0.85rem;
}

/* ============================================
   Select2 Dark Theme Styling
   ============================================ */
.auth-premium-page .select2-dropdown {
    background-color: #1C2340 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
}

.auth-premium-page .select2-results__option {
    padding: 10px 15px !important;
    color: #ffffff !important;
    background: transparent !important;
}

/* Unselected option hover effect */
.auth-premium-page .select2-container--default .select2-results__option--highlighted:not(.select2-results__option--selected) {
    background-color: rgba(0, 188, 212, 0.25) !important;
    color: #ffffff !important;
}

/* Selected option - always show highlight */
.auth-premium-page .select2-container--default .select2-results__option--selected {
    background-color: rgba(0, 188, 212, 0.35) !important;
    color: #ffffff !important;
}

/* Selected option when hovered - stronger highlight */
.auth-premium-page .select2-container--default .select2-results__option--selected.select2-results__option--highlighted {
    background-color: rgba(0, 188, 212, 0.5) !important;
    color: #ffffff !important;
}

.auth-premium-page .select2-search--dropdown .select2-search__field {
    background-color: var(--dark-color) !important;
    color: #ffffff !important;
    border: 1px solid var(--dark-color) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

.auth-premium-page .select2-search--dropdown .select2-search__field::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Select2 scrollbar */
.auth-premium-page .select2-results__options::-webkit-scrollbar {
    width: 6px !important;
}

.auth-premium-page .select2-results__options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
}

.auth-premium-page .select2-results__options::-webkit-scrollbar-thumb {
    background: #00bcd4 !important;
    border-radius: 3px !important;
}

/* Native auth-select option styling */
.auth-premium-page .auth-select option {
    background-color: #1C2340 !important;
    color: #ffffff !important;
    padding: 10px !important;
}

/* Fix card body overflow for dropdowns */
.auth-premium-page .auth-card-body,
.auth-premium-page .auth-card-body-scroll {
    overflow: visible !important;
}

/* ============================================
   Global Select2 Dark Theme (for dropdowns in body)
   ============================================ */
body.auth-dark-theme .select2-dropdown,
.select2-container--open .select2-dropdown {
    background-color: #1C2340 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
}

body.auth-dark-theme .select2-results__option,
.select2-container--open .select2-results__option {
    padding: 10px 15px !important;
    color: #ffffff !important;
    background: transparent !important;
}

body.auth-dark-theme .select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--open .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(0, 188, 212, 0.25) !important;
    color: #ffffff !important;
}

body.auth-dark-theme .select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--open .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(0, 188, 212, 0.35) !important;
}

body.auth-dark-theme .select2-search--dropdown .select2-search__field,
.select2-container--open .select2-search--dropdown .select2-search__field {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
}

/* ============================================
   Global intl-tel-input Dropdown (when in body)
   ============================================ */
/* CRITICAL: Override any relative positioning - the library expects absolute */
.iti--container {
    position: absolute !important;
    z-index: 99999 !important;
}

body>.iti--container {
    position: absolute !important;
    z-index: 99999 !important;
}

body>.iti--container .iti__country-list {
    background-color: #1C2340 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
    border-radius: 12px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
}

body>.iti--container .iti__country {
    padding: 10px 15px !important;
    color: #ffffff !important;
    background: transparent !important;
}

body>.iti--container .iti__country:hover,
body>.iti--container .iti__country.iti__highlight {
    background-color: rgba(0, 188, 212, 0.25) !important;
    color: #ffffff !important;
}

body>.iti--container .iti__country-name {
    color: #ffffff !important;
}

body>.iti--container .iti__dial-code {
    color: rgba(255, 255, 255, 0.6) !important;
}

body>.iti--container .iti__divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body>.iti--container .iti__country-list::-webkit-scrollbar {
    width: 6px !important;
}

body>.iti--container .iti__country-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
}

body>.iti--container .iti__country-list::-webkit-scrollbar-thumb {
    background: #00bcd4 !important;
    border-radius: 3px !important;
}

/* ============================================
   Login Page Additional Styles
   ============================================ */

/* Form Extras (Forgot Password) */
.auth-form-extras {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.auth-forgot-link {
    color: var(--auth-primary-light);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-forgot-link:hover {
    color: var(--auth-primary);
    text-decoration: underline;
}

/* Demo Login Buttons */
.auth-demo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-demo-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--auth-text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-demo-btn:hover {
    background: rgba(0, 188, 212, 0.2);
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--auth-text-muted);
    font-size: 0.85rem;
    text-transform: lowercase;
}

/* Google Button with Rotating Border Effect */
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--auth-text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Base background layer for Google button - SOLID dark background */
.auth-google-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--auth-dark);
    border-radius: 10px;
    z-index: -1;
    transition: all 0.3s ease;
}

/* Rotating border layer for Google button */
.auth-google-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    padding-bottom: 250%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--auth-primary-light) 10%,
            #fff 15%,
            var(--auth-primary-light) 20%,
            transparent 25%,
            transparent 50%,
            var(--auth-primary-light) 60%,
            #fff 65%,
            var(--auth-primary-light) 70%,
            transparent 75%,
            transparent 100%);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
}

.auth-google-btn:hover {
    color: var(--auth-text-primary);
    transform: translateY(-2px);
}

.auth-google-btn:hover::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.auth-google-btn:hover::after {
    inset: 2px;
}

.auth-google-btn svg {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.auth-google-btn span {
    position: relative;
    z-index: 2;
}

/* Alert Close Button */
.auth-alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.auth-alert-close:hover {
    opacity: 1;
}

/* Info Alert */
.auth-alert-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

/* ============================================
   Select2 Selected Options Color Fix
   ============================================ */

/* Override Select2 default purple color for selected options - Higher specificity */
.auth-premium-page .select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results>.select2-results__options>.select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(0, 188, 212, 0.35) !important;
    color: #ffffff !important;
}

.auth-premium-page .select2-container--default .select2-results__option--selected,
.select2-container--default .select2-results__option--selected {
    background-color: rgba(0, 188, 212, 0.35) !important;
    color: #ffffff !important;
}

/* Hover on selected option */
.auth-premium-page .select2-container--default .select2-results__option[aria-selected="true"]:hover,
.auth-premium-page .select2-container--default .select2-results__option--selected:hover,
.auth-premium-page .select2-container--default .select2-results__option--selected.select2-results__option--highlighted,
.select2-container--default .select2-results__option[aria-selected="true"]:hover,
.select2-container--default .select2-results__option--selected:hover,
.select2-container--default .select2-results__option--selected.select2-results__option--highlighted {
    background-color: rgba(0, 188, 212, 0.5) !important;
    color: #ffffff !important;
}

/* Unselected hover */
.auth-premium-page .select2-container--default .select2-results__option--highlighted[aria-selected="false"],
.select2-container--default .select2-results__option--highlighted[aria-selected="false"] {
    background-color: rgba(0, 188, 212, 0.2) !important;
    color: #ffffff !important;
}

/* ============================================
   Select/Dropdown with Rotating Border Effect
   ============================================ */

/* Wrapper for select with rotating border */
.auth-select-wrapper-animated {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Background layer for select */
.auth-select-wrapper-animated::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--auth-dark);
    border-radius: 10px;
    z-index: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Rotating border layer for select */
.auth-select-wrapper-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    padding-bottom: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--auth-primary-light) 10%,
            #fff 15%,
            var(--auth-primary-light) 20%,
            transparent 25%,
            transparent 50%,
            var(--auth-primary-light) 60%,
            #fff 65%,
            var(--auth-primary-light) 70%,
            transparent 75%,
            transparent 100%);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Show rotating border when focused */
.auth-select-wrapper-animated:focus-within::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.auth-select-wrapper-animated .auth-select,
.auth-select-wrapper-animated .auth-input {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
}

/* Select2 inside wrapper - ensure it shows above the background */
.auth-select-wrapper-animated .select2-container {
    position: relative;
    z-index: 1;
}

.auth-select-wrapper-animated .select2-container--default .select2-selection--single,
.auth-select-wrapper-animated .select2-container--default .select2-selection--multiple {
    background: transparent !important;
    border: none !important;
}

.auth-select-wrapper-animated .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
}

.auth-select-wrapper-animated .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--auth-primary) !important;
    border: none !important;
    border-radius: 6px !important;
    color: #fff !important;
    margin: 2px !important;
}

/* Custom Dropdown with Rotating Border Effect */
.auth-dropdown-wrapper-animated {
    position: relative;
    border-radius: 12px;
    /* NO overflow hidden - let dropdown menu show */
}

/* Background layer for custom dropdown */
.auth-dropdown-wrapper-animated::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--auth-dark);
    border-radius: 10px;
    z-index: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Rotating border layer for custom dropdown - using mask instead of overflow */
.auth-dropdown-wrapper-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--auth-primary-light) 10%,
            #fff 15%,
            var(--auth-primary-light) 20%,
            transparent 25%,
            transparent 50%,
            var(--auth-primary-light) 60%,
            #fff 65%,
            var(--auth-primary-light) 70%,
            transparent 75%,
            transparent 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* Show rotating border when dropdown is active */
.auth-dropdown-wrapper-animated:has(.auth-custom-dropdown.active)::before {
    opacity: 1;
    animation: rotateBorderDropdown 2s linear infinite;
}

@keyframes rotateBorderDropdown {
    from {
        background: conic-gradient(from 0deg,
                transparent 0%,
                var(--auth-primary-light) 10%,
                #fff 15%,
                var(--auth-primary-light) 20%,
                transparent 25%,
                transparent 50%,
                var(--auth-primary-light) 60%,
                #fff 65%,
                var(--auth-primary-light) 70%,
                transparent 75%,
                transparent 100%);
    }

    to {
        background: conic-gradient(from 360deg,
                transparent 0%,
                var(--auth-primary-light) 10%,
                #fff 15%,
                var(--auth-primary-light) 20%,
                transparent 25%,
                transparent 50%,
                var(--auth-primary-light) 60%,
                #fff 65%,
                var(--auth-primary-light) 70%,
                transparent 75%,
                transparent 100%);
    }
}

.auth-dropdown-wrapper-animated .auth-dropdown-select {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
}

/* Fix dropdown menu to appear above the wrapper */
.auth-dropdown-wrapper-animated .auth-dropdown-menu {
    z-index: 9999;
}

/* Ensure custom dropdown has proper z-index */
.auth-dropdown-wrapper-animated .auth-custom-dropdown {
    position: relative;
    z-index: 2;
}

/* Auth Custom Dropdown Active State with Rotating Border */
.auth-custom-dropdown.active .auth-dropdown-select {
    border-color: transparent;
    box-shadow: none;
}