/* Auth Component Styles */

/* Floating Container */
.auth-floating-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

/* Auth Button */
.auth-btn {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.auth-btn:active {
    transform: translateY(0);
}

/* User Pill (Authenticated State) */
.user-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    padding: 6px 6px 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.user-pill:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.user-role {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

/* Modal Content */
.auth-modal {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #64748b;
}

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scaleIn {
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auth-btn, .user-pill, .auth-modal {
        background: #1e293b;
        border-color: #334155;
        color: #f8fafc;
    }

    .auth-btn {
        color: #f8fafc;
    }

    .auth-btn:hover, .user-pill:hover {
        border-color: #475569;
        background: #0f172a;
    }

    .user-name {
        color: #f8fafc;
    }

    .user-role {
        color: #94a3b8;
    }

    .close-btn:hover {
        background: #334155;
        color: #cbd5e1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
